Class SynonymStream


  • public final class SynonymStream
    extends Stream
    • Field Detail

      • SYNONYM_STREAM_SYMBOL

        public static final Primitive SYNONYM_STREAM_SYMBOL
    • Method Detail

      • _readChar

        protected int _readChar()
                         throws java.io.IOException
        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
        Throws:
        java.io.IOException
      • _unreadChar

        protected void _unreadChar​(int n)
                            throws java.io.IOException
        Description copied from class: Stream
        Puts a character back into the (underlying) stream
        Overrides:
        _unreadChar in class Stream
        Throws:
        java.io.IOException
      • _charReady

        protected boolean _charReady()
                              throws java.io.IOException
        Description copied from class: Stream
        Returns a boolean indicating input readily available
        Overrides:
        _charReady in class Stream
        Returns:
        true if a character is available
        Throws:
        java.io.IOException
      • _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
      • _writeString

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

        public void _writeLine​(java.lang.String s)
        Description copied from class: Stream
        Writes a string to the underlying stream, appending a new line and updating charPos while doing so
        Overrides:
        _writeLine 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
      • _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