be.SIRAPRISE.util
Class CRLFInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by be.SIRAPRISE.util.CRLFInputStream
All Implemented Interfaces:
java.io.Closeable

public class CRLFInputStream
extends java.io.InputStream

Author:
Erwin

Constructor Summary
CRLFInputStream(java.io.InputStream in)
          Creates the CRLFInputStream
 
Method Summary
 int read()
           
 java.lang.String readLine(java.nio.charset.Charset charSet)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRLFInputStream

public CRLFInputStream(java.io.InputStream in)
Creates the CRLFInputStream

Parameters:
in - The input stream underlying this input stream
Method Detail

read

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

readLine

public java.lang.String readLine(java.nio.charset.Charset charSet)
                          throws java.io.IOException
Parameters:
charSet - the charset used to encode when writing the file
Returns:
The line read
Throws:
java.io.IOException