Class Pathname

    • Field Detail

      • type

        protected LispObject type
        A string, NIL, :WILD or :UNSPECIFIC.
      • version

        protected LispObject version
        A positive integer, or NIL, :WILD, :UNSPECIFIC, or :NEWEST.
      • directoryDelimiter

        public static final char directoryDelimiter
        The path component separator used by internally generated path namestrings.
        See Also:
        Constant Field Values
      • GET_INPUT_STREAM

        public static final Primitive GET_INPUT_STREAM
    • Constructor Detail

      • Pathname

        protected Pathname()
    • Method Detail

      • create

        protected static Pathname create()
      • create

        public static Pathname create​(java.lang.String s)
      • create

        public static Pathname create​(java.lang.String s,
                                      java.lang.String host)
      • ncoerce

        public static LispObject ncoerce​(Pathname orig,
                                         Pathname dest)
        Coerces type between descendents of Pathname types by copying structure
      • isSupportedProtocol

        public static boolean isSupportedProtocol​(java.lang.String protocol)
      • getParts

        public LispObject getParts()
        Description copied from class: LispObject
        Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject. The protocol is to return a List of Cons pairs, where the car of each pair contains a decriptive string, and the cdr returns a subobject for inspection.
        Overrides:
        getParts in class LispObject
      • getNamestring

        public java.lang.String getNamestring()
      • getDirectoryNamestring

        protected java.lang.String getDirectoryNamestring()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • parseNamestring

        public static Pathname parseNamestring​(java.lang.String s)
      • isValidURL

        public static boolean isValidURL​(java.lang.String s)
      • makePathname

        public static final Pathname makePathname​(java.io.File file)
      • isAbsolute

        public boolean isAbsolute()
      • isJar

        public boolean isJar()
      • isURL

        public boolean isURL()
      • isWild

        public boolean isWild()
      • truename

        public static LispObject truename​(Pathname pathname,
                                          boolean errorIfDoesNotExist)
        Returns:
        The canonical TRUENAME as a Pathname if the pathname exists, otherwise returns NIL or possibly a subtype of LispError if there are logical problems with the input.
      • getInputStream

        public java.io.InputStream getInputStream()
      • getLastModified

        public long getLastModified()
        Returns:
        Time in milliseconds since the UNIX epoch at which the resource was last modified, or 0 if the time is unknown.
      • getDirectoryPathname

        public static Pathname getDirectoryPathname​(java.io.File file)
      • isLocalFile

        public boolean isLocalFile()