JavaScript is disabled on your browser.
gnu.inet.util

Class CRLFInputStream

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


    public class CRLFInputStream
    extends java.io.InputStream
    An input stream that filters out CR/LF pairs into LFs.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static int CR
      The CR octet.
      protected java.io.InputStream in
      The underlying input stream.
      static int LF
      The LF octet.
    • Constructor Summary

      Constructors
      Constructor and Description
      CRLFInputStream (java.io.InputStream in)
      Constructs a CR/LF input stream connected to the specified input stream.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      int read ()
      Reads the next byte of data from this input stream.
      int read (byte[] b)
      Reads up to b.length bytes of data from this input stream into an array of bytes.
      int read (byte[] b, int off, int len)
      Reads up to len bytes of data from this input stream into an array of bytes, starting at the specified offset.
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, reset, skip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • in

        protected java.io.InputStream in
        The underlying input stream.
    • Constructor Detail

      • CRLFInputStream

        public CRLFInputStream(java.io.InputStream in)
        Constructs a CR/LF input stream connected to the specified input stream.
    • Method Detail

      • read

        public int read()
         throws java.io.IOException
        Reads the next byte of data from this input stream. Returns -1 if the end of the stream has been reached.
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException - if an I/O error occurs
      • read

        public int read(byte[] b)
         throws java.io.IOException
        Reads up to b.length bytes of data from this input stream into an array of bytes. Returns -1 if the end of the stream has been reached.
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException - if an I/O error occurs
      • read

        public int read(byte[] b,
         int off,
         int len)
         throws java.io.IOException
        Reads up to len bytes of data from this input stream into an array of bytes, starting at the specified offset. Returns -1 if the end of the stream has been reached.
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException - if an I/O error occurs

AltStyle によって変換されたページ (->オリジナル) /