Class WarcCaptureReader
java.lang.Object
org.netpreserve.jwarc.WarcCaptureReader
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionWarcCaptureReader(InputStream stream) WarcCaptureReader(ReadableByteChannel channel) WarcCaptureReader(Path path) WarcCaptureReader(WarcReader reader) -
Method Summary
-
Constructor Details
-
WarcCaptureReader
-
WarcCaptureReader
- Throws:
IOException
-
WarcCaptureReader
- Throws:
IOException
-
WarcCaptureReader
- Throws:
IOException
-
-
Method Details
-
next
- Throws:
IOException
-
position
Seeks to the record at the given position in the underlying channel.- Parameters:
position- byte offset of the beginning of the record to seek to- Throws:
IOException- if an I/O error occursIllegalArgumentException- if the position is negativeUnsupportedOperationException- if the underlying channel does not support seeking
-
close
Closes the underlying WarcReader.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- if an I/O error occurs during the close operation.
-