- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Blob.InMemoryBackend
- Enclosing class:
- Blob
The backend used for saving the blob.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes(int start, int end) Returns the bytes.getKeyDataPair(String name, String fileName, String contentType) Returns the KeyDataPair for this Blob/File.longReturns the last modified timestamp as long.getName()Returns the name.longgetSize()Returns the size.getText()Returns the text.getType(BrowserVersion browserVersion) Returns the type.
-
Method Details
-
getName
String getName()Returns the name.- Returns:
- the name
-
getLastModified
long getLastModified()Returns the last modified timestamp as long.- Returns:
- the last modified timestamp as long
-
getSize
long getSize()Returns the size.- Returns:
- the size
-
getType
Returns the type.- Parameters:
browserVersion- theBrowserVersion- Returns:
- the type
-
getText
Returns the text.- Returns:
- the text
- Throws:
IOException- in case of error
-
getBytes
byte[] getBytes(int start, int end) Returns the bytes.- Parameters:
start- the start positionend- the end position- Returns:
- the bytes
-
getKeyDataPair
Returns the KeyDataPair for this Blob/File.- Parameters:
name- the namefileName- the file namecontentType- the content type- Returns:
- the KeyDataPair to hold the data
-