Class FileStream


public final class FileStream extends Stream
  • Constructor Details

  • Method Details

    • typeOf

      public LispObject typeOf()
      Overrides:
      typeOf in class Stream
    • classOf

      public LispObject classOf()
      Overrides:
      classOf in class Stream
    • typep

      public LispObject typep(LispObject typeSpecifier)
      Overrides:
      typep in class Stream
    • setExternalFormat

      public void setExternalFormat(LispObject format)
      Overrides:
      setExternalFormat in class Stream
    • getPathname

      public Pathname getPathname()
    • fileLength

      public LispObject fileLength()
      Overrides:
      fileLength in class Stream
    • _charReady

      protected boolean _charReady()
      Description copied from class: Stream
      Returns a boolean indicating input readily available
      Overrides:
      _charReady in class Stream
      Returns:
      true if a character is available
    • _clearInput

      public void _clearInput()
      Description copied from class: Stream
      Reads all input from the underlying stream, until _charReady() indicates no more input to be available
      Overrides:
      _clearInput in class Stream
    • _getFilePosition

      protected long _getFilePosition()
      Description copied from class: Stream
      Returns a (non-negative) file position integer or a negative value if the position cannot be determined.
      Overrides:
      _getFilePosition in class Stream
      Returns:
      non-negative value as a position spec
    • _setFilePosition

      protected boolean _setFilePosition(LispObject arg)
      Description copied from class: Stream
      Sets the file position based on a position designator passed in arg
      Overrides:
      _setFilePosition in class Stream
      Parameters:
      arg - File position specifier as described in the CLHS
      Returns:
      true on success, false on failure
    • _close

      public void _close()
      Description copied from class: Stream
      Closes the stream and underlying streams
      Overrides:
      _close in class Stream
    • printObject

      public String printObject()
      Overrides:
      printObject in class StructureObject