public class Pathname extends LispObject implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected LispObject |
device |
protected LispObject |
directory |
static char |
directoryDelimiter
The path component separator used by internally generated
path namestrings.
|
static Primitive |
GET_INPUT_STREAM |
protected LispObject |
host |
protected LispObject |
name |
protected LispObject |
type
A string, NIL, :WILD or :UNSPECIFIC.
|
protected LispObject |
version
A positive integer, or NIL, :WILD, :UNSPECIFIC, or :NEWEST.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Pathname() |
| Modifier and Type | Method and Description |
|---|---|
LispObject |
classOf() |
protected static Pathname |
create() |
static Pathname |
create(Pathname p) |
static Pathname |
create(java.lang.String s) |
static Pathname |
create(java.lang.String s,
java.lang.String host) |
boolean |
equal(LispObject obj) |
boolean |
equalp(LispObject obj) |
boolean |
equals(java.lang.Object o) |
LispObject |
getDevice() |
LispObject |
getDirectory() |
protected java.lang.String |
getDirectoryNamestring() |
static Pathname |
getDirectoryPathname(java.io.File file) |
LispObject |
getHost() |
java.io.InputStream |
getInputStream() |
long |
getLastModified() |
LispObject |
getName() |
java.lang.String |
getNamestring() |
LispObject |
getParts()
Implementing the getParts() protocol will allow INSPECT to
return information about the substructure of a descendent of
LispObject.
|
LispObject |
getType() |
LispObject |
getVersion() |
int |
hashCode() |
boolean |
isAbsolute() |
boolean |
isJar() |
boolean |
isLocalFile() |
static boolean |
isSupportedProtocol(java.lang.String protocol) |
boolean |
isURL() |
static boolean |
isValidURL(java.lang.String s) |
boolean |
isWild() |
static Pathname |
makePathname(java.io.File file) |
static Pathname |
makePathname(LispObject args) |
static Pathname |
mergePathnames(Pathname pathname,
Pathname defaultPathname) |
static Pathname |
mergePathnames(Pathname pathname,
Pathname defaultPathname,
LispObject defaultVersion) |
static LispObject |
ncoerce(Pathname orig,
Pathname dest)
Coerces type between descendents of Pathname types by copying structure
|
static LispObject |
parseNamestring(AbstractString namestring) |
static LogicalPathname |
parseNamestring(AbstractString namestring,
AbstractString host) |
static Pathname |
parseNamestring(java.lang.String s) |
java.lang.String |
printObject() |
Pathname |
setDevice(LispObject device) |
Pathname |
setDirectory(LispObject directory) |
Pathname |
setHost(LispObject host) |
Pathname |
setName(LispObject name) |
Pathname |
setType(LispObject type) |
Pathname |
setVersion(LispObject version) |
int |
sxhash() |
static LispObject |
truename(LispObject arg) |
static LispObject |
truename(LispObject arg,
boolean errorIfDoesNotExist) |
static LispObject |
truename(Pathname pathname) |
static LispObject |
truename(Pathname pathname,
boolean errorIfDoesNotExist) |
LispObject |
typeOf() |
LispObject |
typep(LispObject type) |
ABS, add, add, aref_long, aref, AREF, AREF, aset, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, EQUAL, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, princToString, psxhash, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, setSlotValue, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, SYMBOLP, truncate, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, zerop, ZEROPprotected LispObject host
protected LispObject device
protected LispObject directory
protected LispObject name
protected LispObject type
protected LispObject version
public static final char directoryDelimiter
public static final Primitive GET_INPUT_STREAM
protected static Pathname create()
public static Pathname create(java.lang.String s)
public static Pathname create(java.lang.String s, java.lang.String host)
public LispObject getHost()
public Pathname setHost(LispObject host)
public final LispObject getDevice()
public Pathname setDevice(LispObject device)
public LispObject getDirectory()
public Pathname setDirectory(LispObject directory)
public LispObject getName()
public Pathname setName(LispObject name)
public LispObject getType()
public Pathname setType(LispObject type)
public LispObject getVersion()
public Pathname setVersion(LispObject version)
public static LispObject ncoerce(Pathname orig, Pathname dest)
public static boolean isSupportedProtocol(java.lang.String protocol)
public LispObject getParts()
LispObjectgetParts in class LispObjectpublic LispObject typeOf()
typeOf in class LispObjectpublic LispObject classOf()
classOf in class LispObjectpublic LispObject typep(LispObject type)
typep in class LispObjectpublic java.lang.String getNamestring()
protected java.lang.String getDirectoryNamestring()
public boolean equal(LispObject obj)
equal in class LispObjectpublic boolean equalp(LispObject obj)
equalp in class LispObjectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int sxhash()
sxhash in class LispObjectpublic java.lang.String printObject()
printObject in class LispObjectpublic static Pathname parseNamestring(java.lang.String s)
public static boolean isValidURL(java.lang.String s)
public static LispObject parseNamestring(AbstractString namestring)
public static LogicalPathname parseNamestring(AbstractString namestring, AbstractString host)
public static final Pathname makePathname(LispObject args)
public static final Pathname makePathname(java.io.File file)
public boolean isAbsolute()
public boolean isJar()
public boolean isURL()
public boolean isWild()
public static final Pathname mergePathnames(Pathname pathname, Pathname defaultPathname)
public static final Pathname mergePathnames(Pathname pathname, Pathname defaultPathname, LispObject defaultVersion)
public static LispObject truename(Pathname pathname)
public static LispObject truename(LispObject arg)
public static LispObject truename(LispObject arg, boolean errorIfDoesNotExist)
public static LispObject truename(Pathname pathname, boolean errorIfDoesNotExist)
public java.io.InputStream getInputStream()
public long getLastModified()
public static Pathname getDirectoryPathname(java.io.File file)
public boolean isLocalFile()