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:
java.io.Serializable
public class JarPathname extends URLPathname
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJAR_URI_PREFIXstatic java.lang.StringJAR_URI_SUFFIX-
Fields inherited from class org.armedbear.lisp.Pathname
device, directory, directoryDelimiter, GET_INPUT_STREAM, host, name, type, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJarPathname()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JarPathnamearchiveAsEntry(JarPathname p)Transform a reference to a nested Jar to an entryLispObjectclassOf()static JarPathnamecreate()static JarPathnamecreate(java.lang.String s)static JarPathnamecreate(JarPathname p)static JarPathnamecreateEntryFromFile(java.lang.String jar, java.lang.String entry)static JarPathnamecreateEntryFromJar(JarPathname jar, java.lang.String entry)static JarPathnamecreateFromEntry(JarPathname p)Transform an entry in a jar to a reference as a jarstatic JarPathnamecreateFromFile(java.lang.String s)static JarPathnamecreateFromPathname(Pathname p)JarPathnamegetArchive()java.io.FilegetFile()java.io.InputStreamgetInputStream()longgetLastModified()java.lang.StringgetNamestring()booleanisArchiveEntry()booleanisLocalFile()static LispObjectlistDirectory(JarPathname pathname)List the contents of a directory within a JAR archivestatic LispObjecttruename(Pathname pathname, boolean errorIfDoesNotExist)LispObjecttypeOf()LispObjectvalidateComponents()-
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 Detail
-
JAR_URI_SUFFIX
public static final java.lang.String JAR_URI_SUFFIX
- See Also:
- Constant Field Values
-
JAR_URI_PREFIX
public static final java.lang.String JAR_URI_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static JarPathname create()
-
create
public static JarPathname create(JarPathname p)
-
createFromPathname
public static JarPathname createFromPathname(Pathname p)
-
archiveAsEntry
public static JarPathname archiveAsEntry(JarPathname p)
Transform a reference to a nested Jar to an entry
-
createFromEntry
public static JarPathname createFromEntry(JarPathname p)
Transform an entry in a jar to a reference as a jar
-
createFromFile
public static JarPathname createFromFile(java.lang.String s)
-
createEntryFromFile
public static JarPathname createEntryFromFile(java.lang.String jar, java.lang.String entry)
-
createEntryFromJar
public static JarPathname createEntryFromJar(JarPathname jar, java.lang.String entry)
-
create
public static JarPathname create(java.lang.String s)
-
validateComponents
public LispObject validateComponents()
-
getNamestring
public java.lang.String getNamestring()
- Overrides:
getNamestringin classURLPathname
-
truename
public static LispObject truename(Pathname pathname, boolean errorIfDoesNotExist)
-
isLocalFile
public boolean isLocalFile()
- Overrides:
isLocalFilein classPathname
-
isArchiveEntry
public boolean isArchiveEntry()
-
getArchive
public JarPathname getArchive()
-
classOf
public LispObject classOf()
- Overrides:
classOfin classURLPathname
-
typeOf
public LispObject typeOf()
- Overrides:
typeOfin classURLPathname
-
getInputStream
public java.io.InputStream getInputStream()
- Overrides:
getInputStreamin classURLPathname
-
listDirectory
public static LispObject listDirectory(JarPathname pathname)
List the contents of a directory within a JAR archive
-
getLastModified
public long getLastModified()
- Overrides:
getLastModifiedin classURLPathname- Returns:
- Time in milliseconds since the UNIX epoch at which the resource was last modified, or 0 if the time is unknown.
-
getFile
public java.io.File getFile()
- Overrides:
getFilein classURLPathname
-
-