public class ReadableFileCoder extends AtomicCoder<FileIO.ReadableFile>
Coder
for FileIO.ReadableFile
.Coder.Context, Coder.NonDeterministicException
Constructor and Description |
---|
ReadableFileCoder() |
Modifier and Type | Method and Description |
---|---|
FileIO.ReadableFile |
decode(java.io.InputStream is)
Decodes a value of type
T from the given input stream in
the given context. |
void |
encode(FileIO.ReadableFile value,
java.io.OutputStream os)
Encodes the given value of type
T onto the given output stream. |
static ReadableFileCoder |
of()
Returns the instance of
ReadableFileCoder . |
equals, getCoderArguments, getComponents, hashCode, verifyDeterministic
toString
consistentWithEquals, decode, encode, getEncodedElementByteSize, getEncodedTypeDescriptor, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, verifyDeterministic, verifyDeterministic
public static ReadableFileCoder of()
ReadableFileCoder
.public void encode(FileIO.ReadableFile value, java.io.OutputStream os) throws java.io.IOException
Coder
T
onto the given output stream.encode
in class Coder<FileIO.ReadableFile>
java.io.IOException
- if writing to the OutputStream
fails
for some reasonCoderException
- if the value could not be encoded for some reasonpublic FileIO.ReadableFile decode(java.io.InputStream is) throws java.io.IOException
Coder
T
from the given input stream in
the given context. Returns the decoded value.decode
in class Coder<FileIO.ReadableFile>
java.io.IOException
- if reading from the InputStream
fails
for some reasonCoderException
- if the value could not be decoded for some reason