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, setContextpublic void beginShard()
throws IOException
OutputWriterbeginShard in class OutputWriter<ByteBuffer>IOException - in the event of failurepublic void beginSlice()
throws IOException
OutputWriterbeginSlice in class OutputWriter<ByteBuffer>IOException - in the event of failurepublic void write(ByteBuffer bytes) throws IOException
OutputWriterwrite in class OutputWriter<ByteBuffer>IOExceptionpublic void endSlice()
throws IOException
OutputWriterendSlice in class OutputWriter<ByteBuffer>IOException - in the event of failurepublic void endShard()
OutputWriterendShard in class OutputWriter<ByteBuffer>public com.google.appengine.api.files.AppEngineFile getFile()
Copyright © 2015 Google. All rights reserved.