Class PeekingInputStream
- java.lang.Object
-
- com.coreoz.plume.file.services.mimetype.PeekingInputStream
-
public class PeekingInputStream extends Object
An InputStream wrapper that provides a peeking feature. SeeFileMimeTypeDetectorfor usage
-
-
Constructor Summary
Constructors Constructor Description PeekingInputStream(InputStream fileStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]peek(int bytesToRead)PushbackInputStreampeekedStream()
-
-
-
Constructor Detail
-
PeekingInputStream
public PeekingInputStream(InputStream fileStream)
-
-
Method Detail
-
peek
public byte[] peek(int bytesToRead) throws IOException- Throws:
IOException
-
peekedStream
public PushbackInputStream peekedStream()
-
-