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.InputStreamAppends 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 intpreviousCharprivate java.io.InputStreamrealStream
-
Constructor Summary
Constructors Constructor Description PaddedManifestStream(java.io.InputStream realStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
-