Class GrayStream


  • public class GrayStream
    extends Stream
    The Java stub for Gray streams which wraps the reference of the CLOS object corresponding to the stream.
    • Field Detail

      • ELEMENT_TYPE

        public static final Symbol ELEMENT_TYPE
      • FORCE_OUTPUT

        public static final Symbol FORCE_OUTPUT
      • WRITE_STRING

        public static final Symbol WRITE_STRING
      • WRITE_CHAR

        public static final Symbol WRITE_CHAR
      • WRITE_CHARS

        public static final Symbol WRITE_CHARS
      • FRESH_LINE

        public static final Symbol FRESH_LINE
      • READ_CHAR

        public static final Symbol READ_CHAR
      • UNREAD_CHAR

        public static final Symbol UNREAD_CHAR
      • STREAM_LISTEN

        public static final Symbol STREAM_LISTEN
      • READ_BYTE

        public static final Symbol READ_BYTE
      • WRITE_BYTE

        public static final Symbol WRITE_BYTE
      • FINISH_OUTPUT

        public static final Symbol FINISH_OUTPUT
      • FILE_POSITION

        public static final Symbol FILE_POSITION
      • LINE_COLUMN

        public static final Symbol LINE_COLUMN
    • Method Detail

      • isCharacterStream

        public boolean isCharacterStream()
      • isBinaryStream

        public boolean isBinaryStream()
      • _forceOutput

        public void _forceOutput()
      • _writeString

        public void _writeString​(java.lang.String string)
        Description copied from class: Stream
        Writes a string to the underlying stream, updating charPos while doing so
        Overrides:
        _writeString in class Stream
      • _writeChar

        public void _writeChar​(char c)
        Description copied from class: Stream
        Writes a character into the underlying stream, updating charPos while doing so
        Overrides:
        _writeChar in class Stream
      • _writeChars

        public void _writeChars​(char[] chars,
                                int start,
                                int end)
        Description copied from class: Stream
        Writes a series of characters in the underlying stream, updating charPos while doing so
        Overrides:
        _writeChars in class Stream
      • freshLine

        public LispObject freshLine()
        Description copied from class: Stream
        Emit a newline unless at character position zero Return T if newline was emitted, NIL otherwise
        Overrides:
        freshLine in class Stream
      • _readChar

        public int _readChar()
        Description copied from class: Stream
        Reads a character off an underlying stream
        Overrides:
        _readChar in class Stream
        Returns:
        a character, or -1 at end-of-file
      • _unreadChar

        public void _unreadChar​(int n)
        Description copied from class: Stream
        Puts a character back into the (underlying) stream
        Overrides:
        _unreadChar 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
      • _byteReady

        protected boolean _byteReady()
        Overrides:
        _byteReady in class Stream
      • _readByte

        public int _readByte()
        Description copied from class: Stream
        Reads an 8-bit byte off the underlying stream
        Overrides:
        _readByte in class Stream
        Returns:
      • _writeByte

        public void _writeByte​(int n)
        Description copied from class: Stream
        Writes an 8-bit byte off the underlying stream
        Overrides:
        _writeByte in class Stream
      • _finishOutput

        public void _finishOutput()
        Description copied from class: Stream
        Flushes any buffered output in the (underlying) stream
        Overrides:
        _finishOutput in class Stream
      • _getFilePosition

        public 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
      • setInteractive

        public void setInteractive​(boolean b)
        Overrides:
        setInteractive in class Stream
      • getEncoding

        public java.lang.String getEncoding()
        Overrides:
        getEncoding in class Stream
      • isOpen

        public boolean isOpen()
        Overrides:
        isOpen in class Stream
      • setOpen

        public void setOpen​(boolean b)
        Overrides:
        setOpen in class Stream
      • getOffset

        public int getOffset()
        Overrides:
        getOffset in class Stream
      • _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