public class GSFile extends FileMetadata
FileMetadata.LockState, FileMetadata.OpenState
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATION_HANDLE_PREFIX |
static java.lang.String |
FILE_SYSTEM |
appendName, contentType, currentSequenceKey, finalized, readName, tempBytes, tempBytesSizeWhenFinalized
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildWritablePath(java.lang.String randomString,
java.lang.String fileName) |
static FileMetadata |
create(LocalFileService localFileService,
Clock clock,
java.lang.String fileName,
java.lang.String randomString,
ContentType contentType,
java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a new instance.
|
com.google.appengine.api.blobstore.BlobInfo |
getBlobInfo() |
protected java.io.InputStream |
getInputStream() |
protected java.io.OutputStream |
getOutputStream() |
protected static FileMetadata |
newFinalizedInstance(LocalFileService localFileService,
Clock clock,
ParsedFileName parsedName) |
void |
setFinalized() |
append, checkParameters, copy, getAppendName, getContentType, getLockState, getOpenState, getTempBytesSize, isFinalized, isOpenInDifferentSession, lock, newReadableInstance, read, saveBlobInfo, setState
public static final java.lang.String FILE_SYSTEM
public static final java.lang.String CREATION_HANDLE_PREFIX
public static java.lang.String buildWritablePath(java.lang.String randomString, java.lang.String fileName)
public static FileMetadata create(LocalFileService localFileService, Clock clock, java.lang.String fileName, java.lang.String randomString, ContentType contentType, java.util.Map<java.lang.String,java.lang.String> parameters)
protected static FileMetadata newFinalizedInstance(LocalFileService localFileService, Clock clock, ParsedFileName parsedName)
public com.google.appengine.api.blobstore.BlobInfo getBlobInfo()
getBlobInfo
in class FileMetadata
BlobInfo
of the file. File must have been finalized.public void setFinalized()
setFinalized
in class FileMetadata
protected java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class FileMetadata
java.io.IOException
protected java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class FileMetadata
java.io.IOException