|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageObjectData
Interface for system-specific objects that hold or enable access to the data for a storage object, e.g., a File object. The data is always managed as bytes, not characters.
| Method Summary | |
|---|---|
void |
close()
Closes any open output streams. |
byte[] |
getBytes()
Gets all the bytes of the storage object. |
java.io.InputStream |
getInputStream()
Gets an input stream from which the storage object data bytes can be read. |
java.io.OutputStream |
getOutputStream()
Returns an exclusive output stream to which new data can be written. |
StorageObject |
getStorageObject()
|
boolean |
isOpen()
Returns true if the data object is open for writing. |
long |
size()
Returns the number of bytes in the storage object. |
| Method Detail |
|---|
long size()
java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException
void close()
throws java.io.IOException
java.io.IOException
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
byte[] getBytes()
throws java.io.IOException
java.io.IOExceptionboolean isOpen()
StorageObject getStorageObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||