public class FileBlob extends AbstractBlob
| Constructor and Description |
|---|
FileBlob(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
Returns the length of this Blob, in bytes.
|
java.lang.Object |
getLocator()
Always returns null.
|
java.io.InputStream |
openInputStream()
Returns an InputStream for reading Blob data positioned at the
start.
|
java.io.InputStream |
openInputStream(long pos)
Returns an InputStream for reading Blob data.
|
java.io.InputStream |
openInputStream(long pos,
int bufferSize)
Returns an InputStream for reading Blob data.
|
java.io.OutputStream |
openOutputStream()
Returns an OutputStream for writing Blob data, positioned at the
start.
|
java.io.OutputStream |
openOutputStream(long pos)
Returns an OutputStream for writing Blob data.
|
java.io.OutputStream |
openOutputStream(long pos,
int bufferSize)
Returns an OutputStream for writing Blob data.
|
void |
setLength(long length)
Set the length of this Blob, in bytes.
|
public java.io.InputStream openInputStream()
throws FetchException
BlobFetchExceptionpublic java.io.InputStream openInputStream(long pos)
throws FetchException
Blobpos - desired zero-based position to read fromFetchExceptionpublic java.io.InputStream openInputStream(long pos,
int bufferSize)
throws FetchException
Blobpos - desired zero-based position to read frombufferSize - suggest that the input stream buffer be at least this large (in bytes)FetchExceptionpublic long getLength()
throws FetchException
BlobFetchExceptionpublic java.io.OutputStream openOutputStream()
throws PersistException
BlobPersistExceptionpublic java.io.OutputStream openOutputStream(long pos)
throws PersistException
Blobpos - desired zero-based position to write toPersistExceptionpublic java.io.OutputStream openOutputStream(long pos,
int bufferSize)
throws PersistException
Blobpos - desired zero-based position to write tobufferSize - suggest that the output stream buffer be at least this large (in bytes)PersistExceptionpublic void setLength(long length)
throws PersistException
Bloblength - new length to set toPersistDeniedException - if Blob is read-onlyPersistExceptionpublic java.lang.Object getLocator()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.