Documentation of 'org.apache.derby.client.net.EncodedInputStream' Java class
EncodedInputStream
org.apache.derby.client.net

Class EncodedInputStream

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


    public final class EncodedInputStream
    extends java.io.InputStream
    Create an encoded stream from a Reader. This is an internal class, used to pass readers of characters as streams of bytes. The characters will be represented according to the specified encoding. It is up to the caller to ensure the specified encoding is available, and in general only encodings available as default from Java 1.3 and up should be used. Currently, the encodings 'UTF8' and 'UTF-16BE' are used. Streams are obtained by calling the static methods of this class, for instance createUTF8Stream.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int available() 
      void close() 
      static EncodedInputStream createUTF8Stream(java.io.Reader reader)
      Create a UTF-8 encoded stream from the given Reader.
      int read() 
      • Methods inherited from class java.io.InputStream

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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createUTF8Stream

        public static EncodedInputStream createUTF8Stream(java.io.Reader reader)
        Create a UTF-8 encoded stream from the given Reader.
        Parameters:
        reader - the Reader to read characters from.
        Returns:
        a byte-stream with UTF-8 encoded characters
      • available

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

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

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.