Package org.apache.poi.hpbf.model
Class HPBFPart
- java.lang.Object
-
- org.apache.poi.hpbf.model.HPBFPart
-
- Direct Known Subclasses:
EscherPart
,MainContents
,QuillContents
public abstract class HPBFPart extends java.lang.Object
Parent class of all HPBF sub-parts, handling the fiddly reading in / writing out bits for all of them.
-
-
Constructor Summary
Constructors Constructor Description HPBFPart(DirectoryNode baseDir, java.lang.String[] path)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
generateData()
Called just before writing out, to trigger the data byte array to be updated with the latest contents.byte[]
getData()
Returns the raw data that makes up this document part.java.lang.String[]
getPath()
Returnsprotected void
setData(byte[] data)
void
writeOut(DirectoryNode baseDir)
-
-
-
Constructor Detail
-
HPBFPart
public HPBFPart(DirectoryNode baseDir, java.lang.String[] path) throws java.io.IOException
- Parameters:
path
- the path to the part, eg Contents or Quill, QuillSub, CONTENTS- Throws:
java.io.IOException
-
-
Method Detail
-
writeOut
public void writeOut(DirectoryNode baseDir) throws java.io.IOException
- Throws:
java.io.IOException
-
generateData
protected abstract void generateData()
Called just before writing out, to trigger the data byte array to be updated with the latest contents.
-
getData
public final byte[] getData()
Returns the raw data that makes up this document part.
-
setData
protected final void setData(byte[] data)
-
getPath
public final java.lang.String[] getPath()
Returns
-
-