public class BasicDataPointer extends Object implements IDataPointer
| Constructor and Description |
|---|
BasicDataPointer()
NOTE: Only for serialization use.
|
BasicDataPointer(String name,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteData()
Deletes the underlying data from storage.
|
byte[] |
getData()
Get the data from the underlying storage.
|
InputStream |
getDataStream()
Get the data from the underlying storage.
|
String |
getDisplayText()
Get a display string that represents this data.
|
long |
getLength() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(DataOutputStream out) |
public BasicDataPointer()
public BasicDataPointer(String name, byte[] data)
public boolean deleteData()
IDataPointerdeleteData in interface IDataPointerpublic byte[] getData()
IDataPointergetData in interface IDataPointerpublic String getDisplayText()
IDataPointergetDisplayText in interface IDataPointerpublic InputStream getDataStream()
IDataPointergetDataStream in interface IDataPointerpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic long getLength()
getLength in interface IDataPointerCopyright © 2021. All rights reserved.