Interface InputAccessor
- All Known Implementing Classes:
InputAccessor.Std
public interface InputAccessor
Interface used to expose beginning of a data file to data format
detection code.
- Since:
- 1.8
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBasic implementation that reads data from givenInputStreamand buffers it as necessary. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to call to check if more input is available.bytenextByte()Returns next byte available, if any; if no more bytes are available, will throwEOFException.voidreset()Method that can be called to reset accessor to read from beginning of input.
-
Method Details
-
hasMoreBytes
Method to call to check if more input is available. Since this may result in more content to be read (at least one more byte), aIOExceptionmay get thrown.- Throws:
IOException
-
nextByte
Returns next byte available, if any; if no more bytes are available, will throwEOFException.- Throws:
IOException
-
reset
void reset()Method that can be called to reset accessor to read from beginning of input.
-