public static final class FileIO.ReadableFile
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Compression |
getCompression()
Returns the method with which this file will be decompressed in
open() . |
MatchResult.Metadata |
getMetadata()
Returns the
MatchResult.Metadata of the file. |
java.nio.channels.ReadableByteChannel |
open()
Returns a
ReadableByteChannel reading the data from this file, potentially
decompressing it using getCompression() . |
java.nio.channels.SeekableByteChannel |
openSeekable()
|
byte[] |
readFullyAsBytes()
Returns the full contents of the file as bytes.
|
java.lang.String |
readFullyAsUTF8String()
Returns the full contents of the file as a
String decoded as UTF-8. |
java.lang.String |
toString() |
public MatchResult.Metadata getMetadata()
MatchResult.Metadata
of the file.public Compression getCompression()
open()
.public java.nio.channels.ReadableByteChannel open() throws java.io.IOException
ReadableByteChannel
reading the data from this file, potentially
decompressing it using getCompression()
.java.io.IOException
public java.nio.channels.SeekableByteChannel openSeekable() throws java.io.IOException
java.io.IOException
public byte[] readFullyAsBytes() throws java.io.IOException
java.io.IOException
public java.lang.String readFullyAsUTF8String() throws java.io.IOException
String
decoded as UTF-8.java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object