com.compoze.collab.util
Class Utf7InputStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by com.compoze.collab.util.Utf7InputStreamReader
All Implemented Interfaces
Closeable, Readable

public class Utf7InputStreamReader
extends Reader

An InputStreamReader for reading UTF-7 encoded data.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
Utf7InputStreamReader(InputStream in)
          Constructs a Utf7InputStreamReader.
 
Method Summary
 void close()
          Close the stream.
 int read(char[] cChars, int iOff, int iLen)
          Read characters into a portion of an array.
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utf7InputStreamReader

public Utf7InputStreamReader(InputStream in)
Constructs a Utf7InputStreamReader.

Parameters
in -
Method Detail

close

public void close()
           throws IOException
Close the stream.

Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws
IOException - If an I/O error occurs

read

public int read(char[] cChars,
                int iOff,
                int iLen)
         throws IOException
Read characters into a portion of an array.

Specified by:
read in class Reader
Parameters
cChars - Destination buffer
iOff - Offset at which to start storing characters
iLen - Maximum number of characters to read
Returns
The number of characters read, or -1 if the end of the stream has been reached
Throws
IOException - If an I/O error occurs


Copyright © 2006 BEA Systems, Inc. All Rights Reserved