Package org.apache.beam.sdk.io
Class FileIO.ReadableFile
java.lang.Object
org.apache.beam.sdk.io.FileIO.ReadableFile
- Enclosing class:
FileIO
A utility class for accessing a potentially compressed file.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the method with which this file will be decompressed inopen()
.Returns theMatchResult.Metadata
of the file.int
hashCode()
open()
Returns aReadableByteChannel
reading the data from this file, potentially decompressing it usinggetCompression()
.byte[]
Returns the full contents of the file as bytes.Returns the full contents of the file as aString
decoded as UTF-8.toString()
-
Method Details
-
getMetadata
Returns theMatchResult.Metadata
of the file. -
getCompression
Returns the method with which this file will be decompressed inopen()
. -
open
Returns aReadableByteChannel
reading the data from this file, potentially decompressing it usinggetCompression()
.- Throws:
IOException
-
openSeekable
- Throws:
IOException
-
readFullyAsBytes
Returns the full contents of the file as bytes.- Throws:
IOException
-
readFullyAsUTF8String
Returns the full contents of the file as aString
decoded as UTF-8.- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-