org.apache.commons.codec.binary
Class Codec105ErrorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.commons.codec.binary.Codec105ErrorInputStream
All Implemented Interfaces:
Closeable

public class Codec105ErrorInputStream
extends InputStream

Emits three line-feeds '\n' in a row, one at a time, and then EOF. Recreates the bug described in CODEC-105.

Since:
1.5
Version:
$Id $

Constructor Summary
Codec105ErrorInputStream()
           
 
Method Summary
 int read()
           
 int read(byte[] b, int pos, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Codec105ErrorInputStream

public Codec105ErrorInputStream()
Method Detail

read

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

read

public int read(byte[] b,
                int pos,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.