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 TypeMethodDescriptionbooleanReturns the method with which this file will be decompressed inopen().Returns theMatchResult.Metadataof the file.inthashCode()open()Returns aReadableByteChannelreading 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 aStringdecoded as UTF-8.toString()
-
Method Details
-
getMetadata
Returns theMatchResult.Metadataof the file. -
getCompression
Returns the method with which this file will be decompressed inopen(). -
open
Returns aReadableByteChannelreading 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 aStringdecoded as UTF-8.- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-