DCT Lightfoot v3 API specification

java.io
Class InputStreamReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.InputStreamReader

public class InputStreamReader
extends Reader

Read characters from an input stream


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InputStreamReader(InputStream is)
          Create an input stream reader using the default encoding
InputStreamReader(InputStream is, java.lang.String enc)
          Create an input stream reader using the encoding
 
Method Summary
 void close()
          close the stream
 void mark(int limit)
          mark the stream
 boolean markSupported()
          See if mark is supported
 int read()
          Read a character
 int read(char[] cbuf, int off, int len)
          Read characters into a character array
 boolean ready()
          See if the stream is ready
 void reset()
          reset the stream
 long skip(long n)
          Skip a number of characters
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamReader

public InputStreamReader(InputStream is)
Create an input stream reader using the default encoding

Parameters:
is - The input stream

InputStreamReader

public InputStreamReader(InputStream is,
                         java.lang.String enc)
                  throws UnsupportedEncodingException
Create an input stream reader using the encoding

Parameters:
is - The input stream
enc - The encoding
Throws:
UnuspportedEncodingException - if the encoding is not supported
UnsupportedEncodingException
Method Detail

close

public void close()
           throws IOException
close the stream

Specified by:
close in class Reader
Throws:
IOException - if there is an IO error

mark

public void mark(int limit)
          throws IOException
mark the stream

Overrides:
mark in class Reader
Parameters:
limit - The read ahaead limit
Throws:
IOException - if there is an IO error

markSupported

public boolean markSupported()
See if mark is supported

Overrides:
markSupported in class Reader
Returns:
true if it is

read

public int read()
         throws IOException
Read a character

Overrides:
read in class Reader
Returns:
the character
Throws:
IOException - if there is an IO error

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Read characters into a character array

Specified by:
read in class Reader
Parameters:
cbuf - The character array
off - The offset
len - The length
Returns:
the characters read
Throws:
IOException - if there is an IO error

ready

public boolean ready()
              throws IOException
See if the stream is ready

Overrides:
ready in class Reader
Returns:
true if the stream is ready
Throws:
IOException - if there is an IO error

reset

public void reset()
           throws IOException
reset the stream

Overrides:
reset in class Reader
Throws:
IOException - if there is an IO error

skip

public long skip(long n)
          throws IOException
Skip a number of characters

Overrides:
skip in class Reader
Parameters:
n - The number of characters to skip
Throws:
IOException - if there is an IO error

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification