Package com.fourjs.report.facturx.util
Class ProfileDetectingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.fourjs.report.facturx.util.ProfileDetectingInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ProfileDetectingInputStream extends FilterInputStream
InputStream that peeks into the wrapped stream to obtain the specification identifier
-
-
Constructor Summary
Constructors Constructor Description ProfileDetectingInputStream(InputStream is)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSpecificationIdentifier()
static void
main(String[] args)
boolean
markSupported()
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ProfileDetectingInputStream
public ProfileDetectingInputStream(InputStream is) throws IOException
- Throws:
IOException
-
-
Method Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
getSpecificationIdentifier
public String getSpecificationIdentifier()
-
-