Package org.jboss.vfs.util
Class PaddedManifestStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.vfs.util.PaddedManifestStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class PaddedManifestStream extends java.io.InputStream
Appends a new line char to the stream if it doesn't have one as his last byte.
-
-
Field Summary
Fields Modifier and Type Field Description private int
previousChar
private java.io.InputStream
realStream
-
Constructor Summary
Constructors Constructor Description PaddedManifestStream(java.io.InputStream realStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-