org.keridwen.core.data.storage.packet
Interface AccessorUnsafe<ObjectType>

All Superinterfaces:
Accessor<ObjectType>
All Known Implementing Classes:
ObjectAccessorUnsafe

public interface AccessorUnsafe<ObjectType>
extends Accessor<ObjectType>

Data accessor has the ability to extract and put data in/from the DataManager

Author:
JeT - Artenum

Method Summary
 ObjectType getContent()
           
 void readUnsafe(DataPacketUnsafe<ObjectType> packet)
          read data from a DataPacket in unsafe mode
 void setObject(ObjectType object)
           
 void unsafeWrite(DataPacketUnsafe<ObjectType> packet)
          write data to the DataPacket in unsafe mode
 
Methods inherited from interface org.keridwen.core.data.storage.packet.Accessor
getDataTypes, getId, getMode
 

Method Detail

readUnsafe

void readUnsafe(DataPacketUnsafe<ObjectType> packet)
                throws DataIOException
read data from a DataPacket in unsafe mode

Throws:
DataIOException

unsafeWrite

void unsafeWrite(DataPacketUnsafe<ObjectType> packet)
                 throws DataIOException
write data to the DataPacket in unsafe mode

Throws:
DataIOException

getContent

ObjectType getContent()
Returns:
the accessed object

setObject

void setObject(ObjectType object)
Parameters:
object - the object to set in this accessor


Copyright © 2010-2013 Artenum. All Rights Reserved.