Package org.armedbear.lisp
Class JarPathname
java.lang.Object
org.armedbear.lisp.LispObject
org.armedbear.lisp.Pathname
org.armedbear.lisp.URLPathname
org.armedbear.lisp.JarPathname
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class org.armedbear.lisp.Pathname
device, directory, directoryDelimiter, GET_INPUT_STREAM, host, name, type, version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JarPathname
Transform a reference to a nested Jar to an entryclassOf()
static JarPathname
create()
static JarPathname
static JarPathname
static JarPathname
createEntryFromFile
(String jar, String entry) static JarPathname
createEntryFromJar
(JarPathname jar, String entry) static JarPathname
Transform an entry in a jar to a reference as a jarstatic JarPathname
static JarPathname
getFile()
long
boolean
boolean
static LispObject
listDirectory
(JarPathname pathname) List the contents of a directory within a JAR archivestatic LispObject
typeOf()
Methods inherited from class org.armedbear.lisp.URLPathname
create, create, create, createFromFile, getNamestring, getNamestringAsURL, hasExplicitFile, isFile, toURI, toURL, truename
Methods inherited from class org.armedbear.lisp.Pathname
create, equal, equalp, equals, getDevice, getDirectory, getDirectoryNamestring, getDirectoryPathname, getHost, getName, getParts, getType, getVersion, hashCode, isAbsolute, isJar, isSupportedProtocol, isURL, isValidURL, isWild, makePathname, makePathname, mergePathnames, mergePathnames, ncoerce, parseNamestring, parseNamestring, parseNamestring, printObject, setDevice, setDirectory, setHost, setName, setType, setVersion, sxhash, truename, truename, truename, typep
Methods inherited from class org.armedbear.lisp.LispObject
ABS, add, add, aref, AREF, AREF, aref_long, 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, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, 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, setSlotValue, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, 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, ZEROP
-
Field Details
-
JAR_URI_SUFFIX
- See Also:
-
JAR_URI_PREFIX
- See Also:
-
-
Constructor Details
-
JarPathname
protected JarPathname()
-
-
Method Details
-
create
-
create
-
createFromPathname
-
archiveAsEntry
Transform a reference to a nested Jar to an entry -
createFromEntry
Transform an entry in a jar to a reference as a jar -
createFromFile
-
createEntryFromFile
-
createEntryFromJar
-
create
-
validateComponents
-
getNamestring
- Overrides:
getNamestring
in classURLPathname
-
truename
-
isLocalFile
public boolean isLocalFile()- Overrides:
isLocalFile
in classPathname
-
isArchiveEntry
public boolean isArchiveEntry() -
getArchive
-
classOf
- Overrides:
classOf
in classURLPathname
-
typeOf
- Overrides:
typeOf
in classURLPathname
-
getInputStream
- Overrides:
getInputStream
in classURLPathname
-
listDirectory
List the contents of a directory within a JAR archive -
getLastModified
public long getLastModified()- Overrides:
getLastModified
in classURLPathname
- Returns:
- Time in milliseconds since the UNIX epoch at which the resource was last modified, or 0 if the time is unknown.
-
getFile
- Overrides:
getFile
in classURLPathname
-