public final class BlobFileOutputWriter extends OutputWriter<ByteBuffer>
OutputWriter
that writes bytes to a blob file that it creates.Constructor and Description |
---|
BlobFileOutputWriter(String fileName,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
void |
beginShard()
Will be called once before any calls to write.
|
void |
beginSlice()
Prepares the writer for writing after possibly having gone through
serialization or deserialization.
|
void |
endShard()
Called when no more output will be written to this writer.
|
void |
endSlice()
Prepares the writer for possible serialization.
|
com.google.appengine.api.files.AppEngineFile |
getFile()
Returns the file or null if file was not finalized.
|
void |
write(ByteBuffer bytes)
Writes a value to the output.
|
allowSliceRetry, cleanup, close, estimateMemoryRequirement, getContext, open, setContext
public void beginShard() throws IOException
OutputWriter
beginShard
in class OutputWriter<ByteBuffer>
IOException
- in the event of failurepublic void beginSlice() throws IOException
OutputWriter
beginSlice
in class OutputWriter<ByteBuffer>
IOException
- in the event of failurepublic void write(ByteBuffer bytes) throws IOException
OutputWriter
write
in class OutputWriter<ByteBuffer>
IOException
public void endSlice() throws IOException
OutputWriter
endSlice
in class OutputWriter<ByteBuffer>
IOException
- in the event of failurepublic void endShard()
OutputWriter
endShard
in class OutputWriter<ByteBuffer>
public com.google.appengine.api.files.AppEngineFile getFile()
Copyright © 2015 Google. All rights reserved.