public final class Comment2000Atom extends RecordAtom
Modifier | Constructor and Description |
---|---|
protected |
Comment2000Atom()
Constructs a brand new comment atom record.
|
protected |
Comment2000Atom(byte[] source,
int start,
int len)
Constructs the comment atom record from its source data.
|
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Gets the date the comment was made.
|
int |
getNumber()
Gets the comment number (note - each user normally has their own count).
|
long |
getRecordType()
Gets the record type.
|
int |
getXOffset()
Gets the X offset of the comment on the page.
|
int |
getYOffset()
Gets the Y offset of the comment on the page.
|
void |
setDate(Date date)
Sets the date the comment was made.
|
void |
setNumber(int number)
Sets the comment number (note - each user normally has their own count).
|
void |
setXOffset(int xOffset)
Sets the X offset of the comment on the page.
|
void |
setYOffset(int yOffset)
Sets the Y offset of the comment on the page.
|
void |
writeOut(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
protected Comment2000Atom()
protected Comment2000Atom(byte[] source, int start, int len)
source
- the source data as a byte array.start
- the start offset into the byte array.len
- the length of the slice in the byte array.public int getNumber()
public void setNumber(int number)
number
- the comment number.public Date getDate()
public void setDate(Date date)
date
- the comment date.public int getXOffset()
public void setXOffset(int xOffset)
xOffset
- the X offset.public int getYOffset()
public void setYOffset(int yOffset)
yOffset
- the Y offset.public long getRecordType()
getRecordType
in class Record
public void writeOut(OutputStream out) throws IOException
writeOut
in class Record
out
- the output stream to write to.IOException
- if an error occurs.Copyright © 2020. All rights reserved.