|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.data.storage.packet.DataPacket<ObjectType> org.keridwen.core.data.storage.packet.DataPacketSafe<ObjectType> org.keridwen.core.data.storage.packet.FileDataPacket<ObjectType>
public class FileDataPacket<ObjectType>
Constructor Summary | |
---|---|
FileDataPacket(Class<?> packetDataType,
UniqueIdGenerator<DataPacketId> idGenerator)
Constructor |
Method Summary | |
---|---|
boolean |
closeIn(InputStream in)
close the input stream used to read data |
boolean |
closeOut(OutputStream out)
close the output stream used to write data |
Class<?> |
getPacketDataType()
Type of data managed by this packet |
InputStream |
openIn()
Create a new input stream used to read data. |
OutputStream |
openOut()
Open the only output stream used to write data TODO: manage concurrency (throw DataModelConcurrencyException ?) |
Methods inherited from class org.keridwen.core.data.storage.packet.DataPacket |
---|
addDataPacketListener, fireDataPacketEvent, forceReadLockRelease, forceWriteLockRelease, getPacketId, isReadInProgress, isWriteInProgress, removeDataPacketListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDataPacket(Class<?> packetDataType, UniqueIdGenerator<DataPacketId> idGenerator)
packetName
- packetDataType
- Method Detail |
---|
public Class<?> getPacketDataType()
DataPacketSafe
getPacketDataType
in class DataPacketSafe<ObjectType>
DataPacket.getPacketDataType()
public InputStream openIn() throws DataIOException
DataPacketSafe
openIn
in class DataPacketSafe<ObjectType>
DataIOException
org.keridwen.core.data.storage.packet.DataPacket#openIn()
public boolean closeIn(InputStream in) throws DataIOException
DataPacketSafe
closeIn
in class DataPacketSafe<ObjectType>
DataIOException
org.keridwen.core.data.storage.packet.DataPacket#closeIn()
public OutputStream openOut() throws DataIOException
DataPacketSafe
openOut
in class DataPacketSafe<ObjectType>
DataIOException
org.keridwen.core.data.storage.packet.DataPacket#openOut()
public boolean closeOut(OutputStream out) throws DataIOException
DataPacketSafe
closeOut
in class DataPacketSafe<ObjectType>
DataIOException
org.keridwen.core.data.storage.packet.DataPacket#closeOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |