net.sf.freecol.client.gui
Class FAFile.CREatingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.sf.freecol.client.gui.FAFile.CREatingInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
FAFile

private static class FAFile.CREatingInputStream
extends java.io.InputStream

This utility class removes all CR:s from an InputStream. It is not particularly efficient and is intended as a temporary workaround.


Field Summary
private  java.io.InputStream in
           
 
Constructor Summary
FAFile.CREatingInputStream(java.io.InputStream in)
          Constructor.
 
Method Summary
 int read()
          Read a character, override to eat all CR:s.
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private final java.io.InputStream in
Constructor Detail

FAFile.CREatingInputStream

FAFile.CREatingInputStream(java.io.InputStream in)
Constructor.

Parameters:
in - The input stream to wrap.
Method Detail

read

public int read()
         throws java.io.IOException
Read a character, override to eat all CR:s.

Specified by:
read in class java.io.InputStream
Returns:
next character or -1 on end of file.
Throws:
java.io.IOException - if wrapped stream throws it.