Package org.apache.maven.index.reader
Class ChunkReader
java.lang.Object
org.apache.maven.index.reader.ChunkReader
Maven Index published binary chunk reader, it reads raw Maven Indexer records from the transport binary format.
Instances of this class MUST BE handled as resources (have them closed once done with them), it is user
responsibility to close them, ideally in try-with-resource block.
- Since:
- 5.1.2
-
Constructor Details
-
ChunkReader
- Throws:
IOException
-
-
Method Details
-
getName
Returns the chunk name. -
getVersion
public int getVersion()Returns index version. All releases so far always returned1
. -
getTimestamp
Returns the index timestamp of last update of the index. -
iterator
Returns theRecord
iterator. -
close
Closes this reader and it's underlying input.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-