Package org.jboss.vfs.util
Class PaddedManifestStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.vfs.util.PaddedManifestStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PaddedManifestStream extends InputStream
Appends a new line char to the stream if it doesn't have one as his last byte.- Author:
- ehsavoie
-
-
Constructor Summary
Constructors Constructor Description PaddedManifestStream(InputStream realStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
PaddedManifestStream
public PaddedManifestStream(InputStream realStream)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-