Interface PsyReadable

    • Method Detail

      • psyRead

        default PsyInteger psyRead()
                            throws PsyException
        Read a character (Ψ-integer) from this object and returns it. Returns PsyInteger.MINUS_ONE when end of input has been reached.
        Returns:
        a Ψ-integer representing the character read from this object.
        Throws:
        PsyException - when error occurs.
      • psyReadString

        PsyString psyReadString​(PsyInteger oCount)
                         throws PsyException
        Read a Ψ-string from this object and returns it.
        Parameters:
        oCount - a Ψ-integer representing the length of the string.
        Returns:
        a string read.
        Throws:
        PsyException - when error occurs.
      • psyReadLine

        PsyString psyReadLine()
                       throws PsyException
        Read a line (Ψ-string) from this object and returns it.
        Returns:
        a line read,
        Throws:
        PsyException - when error occurs.
      • psySkip

        PsyInteger psySkip​(PsyInteger oCount)
                    throws PsyException
        Skips characters. This method will block until some characters are available, an I/O error occurs, or end of input is reached.
        Parameters:
        oCount - a Ψ-integer representing the number of characters to be skipped.
        Returns:
        a Ψ-integer representing the number of characters actually skipped.
        Throws:
        PsyException - when an error occurs.