|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
java.io.InputStreamReader
ariba.util.io.UnicodeEscapeInputStreamReader
public class UnicodeEscapeInputStreamReader
UnicodeEscapeInputStreamReader is a special inputStreamWriter to read from the underlying input stream and convert the data into UnicodeEscaped (Ariba's internal encoding scheme) format. This is used internally by our stubgenerator, should not be used elsewhere.
Constructor Summary | |
---|---|
UnicodeEscapeInputStreamReader(java.io.InputStream in)
Create an InputStreamReader that uses internal Ariba encoding. |
|
UnicodeEscapeInputStreamReader(java.io.InputStream in,
java.lang.String enc)
Constructor: we don't support this constructor. |
Method Summary | |
---|---|
void |
close()
Close the stream. |
java.lang.String |
getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
boolean |
ready()
Tell whether this stream is ready to be read. |
Methods inherited from class java.io.InputStreamReader |
---|
read |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnicodeEscapeInputStreamReader(java.io.InputStream in)
in
- An InputStream, must not be null.public UnicodeEscapeInputStreamReader(java.io.InputStream in, java.lang.String enc) throws java.io.UnsupportedEncodingException
in
- An InputStreamenc
- The encoding
java.io.UnsupportedEncodingException
- If the named encoding is not supportedMethod Detail |
---|
public java.lang.String getEncoding()
getEncoding
in class java.io.InputStreamReader
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.InputStreamReader
cbuf
- Destination bufferoff
- Offset at which to start storing characterslen
- Maximum number of characters to read
java.io.IOException
- If an I/O error occurspublic boolean ready() throws java.io.IOException
ready
in class java.io.InputStreamReader
java.io.IOException
- If an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStreamReader
java.io.IOException
- If an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |