Constructor and Description |
---|
UpdatesRecord(java.io.InputStream in)
Construct a new UpdatesRecord and read data from an InputStream.
|
UpdatesRecord(int time,
ChangeSet changes)
Construct a new UpdatesRecord.
|
Modifier and Type | Method and Description |
---|---|
ChangeSet |
getChangeSet()
Get the entity updates.
|
RecordType |
getRecordType()
Get the type of this record.
|
int |
getTime()
Get the timestamp for this record.
|
void |
read(java.io.InputStream in)
Read this log record's data from a stream.
|
void |
write(java.io.OutputStream out)
Write this log record to a stream.
|
public UpdatesRecord(int time, ChangeSet changes)
time
- The timestep of this updates record.changes
- The set of changes.public UpdatesRecord(java.io.InputStream in) throws java.io.IOException, LogException
in
- The InputStream to read from.java.io.IOException
- If there is a problem reading the stream.LogException
- If there is a problem reading the log record.public RecordType getRecordType()
LogRecord
getRecordType
in interface LogRecord
public void write(java.io.OutputStream out) throws java.io.IOException
LogRecord
public void read(java.io.InputStream in) throws java.io.IOException, LogException
LogRecord
read
in interface LogRecord
in
- The InputStream to read from.java.io.IOException
- If there is a problem reading the stream.LogException
- If there is a problem reading the log record.public int getTime()
public ChangeSet getChangeSet()