Class TelnetTerminal.TelnetClientIACFilterer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    TelnetTerminal

    private static class TelnetTerminal.TelnetClientIACFilterer
    extends java.io.InputStream
    • Field Detail

      • inputStream

        private final java.io.InputStream inputStream
      • buffer

        private final byte[] buffer
      • workingBuffer

        private final byte[] workingBuffer
      • bytesInBuffer

        private int bytesInBuffer
      • socket

        private java.net.Socket socket
    • Constructor Detail

      • TelnetClientIACFilterer

        TelnetClientIACFilterer​(java.net.Socket socket)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • fillBuffer

        private void fillBuffer​(boolean block)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseCommand

        private void parseCommand​(byte[] buffer,
                                  int position,
                                  int max)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseSubNegotiation

        private int parseSubNegotiation​(byte[] buffer,
                                        int position,
                                        int max)
      • parseSubNegotiation

        private void parseSubNegotiation​(byte option,
                                         byte[] additionalData)