com.sap.ip.me.api.services
Class BufferedUTF8Reader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.BufferedReader
          extended bycom.sap.ip.me.api.services.BufferedUTF8Reader

public class BufferedUTF8Reader
extends java.io.BufferedReader

Buffered reader that reads a UTF8 encoded file or stream.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
BufferedUTF8Reader(java.io.File fileToBeRead)
          Creates a BufferedUTF8Reader object for the given input file with the default buffer size.
BufferedUTF8Reader(java.io.File fileToBeRead, int buffersize)
          Creates a BufferedUTF8Reader object for the given input file and with the given buffersize.
BufferedUTF8Reader(java.io.InputStream streamToBeRead)
          Creates a BufferedUTF8Reader object for the given input stream with the default buffer size.
BufferedUTF8Reader(java.lang.String fileToBeRead)
          Creates a BufferedUTF8Reader object for the given input file name with the default buffer size.
BufferedUTF8Reader(java.lang.String fileToBeRead, int buffersize)
          Creates a BufferedUTF8Reader object for the given input file name and with the given buffersize.
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedUTF8Reader

public BufferedUTF8Reader(java.io.File fileToBeRead,
                          int buffersize)
                   throws java.io.FileNotFoundException
Creates a BufferedUTF8Reader object for the given input file and with the given buffersize.

Parameters:
fileToBeRead - The input file.
buffersize - The size of the buffer
Throws:
java.io.FileNotFoundException - If the file cannot be found a FileNotFoundExcpetion will be thrown.

BufferedUTF8Reader

public BufferedUTF8Reader(java.lang.String fileToBeRead,
                          int buffersize)
                   throws java.io.FileNotFoundException
Creates a BufferedUTF8Reader object for the given input file name and with the given buffersize.

Parameters:
fileToBeRead - The input file name.
buffersize - The size of the buffer
Throws:
java.io.FileNotFoundException - If the file cannot be found a FileNotFoundExcpetion will be thrown.

BufferedUTF8Reader

public BufferedUTF8Reader(java.io.File fileToBeRead)
                   throws java.io.FileNotFoundException
Creates a BufferedUTF8Reader object for the given input file with the default buffer size.

Parameters:
fileToBeRead - The input file.
Throws:
java.io.FileNotFoundException - If the file cannot be found a FileNotFoundExcpetion will be thrown.

BufferedUTF8Reader

public BufferedUTF8Reader(java.lang.String fileToBeRead)
                   throws java.io.FileNotFoundException
Creates a BufferedUTF8Reader object for the given input file name with the default buffer size.

Parameters:
fileToBeRead - The input file.
Throws:
java.io.FileNotFoundException - If the file cannot be found a FileNotFoundExcpetion will be thrown.

BufferedUTF8Reader

public BufferedUTF8Reader(java.io.InputStream streamToBeRead)
Creates a BufferedUTF8Reader object for the given input stream with the default buffer size.

Parameters:
streamToBeRead - The stream to be read.


Copyright © 2005 SAP AG. All Rights Reserved.