Package org.apache.poi.hemf.record
Class HemfCommentRecord
- java.lang.Object
-
- org.apache.poi.hemf.record.HemfCommentRecord
-
- All Implemented Interfaces:
HemfRecord
@Internal public class HemfCommentRecord extends java.lang.Object implements HemfRecord
This is the outer comment record that is recognized by the initial parse byHemfRecordType.comment
. However, there are four types of comment: EMR_COMMENT, EMR_COMMENT_EMFPLUS, EMR_COMMENT_EMFSPOOL, and EMF_COMMENT_PUBLIC. To get the underlying comment, callgetComment()
.
-
-
Field Summary
Fields Modifier and Type Field Description static long
COMMENT_EMFPLUS
static long
COMMENT_EMFSPOOL
static long
COMMENT_PUBLIC
-
Constructor Summary
Constructors Constructor Description HemfCommentRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractHemfComment
getComment()
HemfRecordType
getRecordType()
long
init(LittleEndianInputStream leis, long recordId, long recordSize)
Init record from stream
-
-
-
Field Detail
-
COMMENT_EMFSPOOL
public static final long COMMENT_EMFSPOOL
- See Also:
- Constant Field Values
-
COMMENT_EMFPLUS
public static final long COMMENT_EMFPLUS
- See Also:
- Constant Field Values
-
COMMENT_PUBLIC
public static final long COMMENT_PUBLIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordType
public HemfRecordType getRecordType()
- Specified by:
getRecordType
in interfaceHemfRecord
-
init
public long init(LittleEndianInputStream leis, long recordId, long recordSize) throws java.io.IOException
Description copied from interface:HemfRecord
Init record from stream- Specified by:
init
in interfaceHemfRecord
- Parameters:
leis
- the little endian input stream- Returns:
- count of processed bytes
- Throws:
java.io.IOException
-
getComment
public AbstractHemfComment getComment()
-
-