public abstract class HPBFPart
extends java.lang.Object
Constructor and Description |
---|
HPBFPart(DirectoryNode baseDir, java.lang.String[] path) |
Modifier and Type | Method and 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()
Returns
(退货)
|
protected void |
setData(byte[] data) |
void |
writeOut(DirectoryNode baseDir) |
public HPBFPart(DirectoryNode baseDir, java.lang.String[] path) throws java.io.IOException
path
- the path to the part, eg Contents or Quill, QuillSub, CONTENTS
(path - 零件的路径,例如 Contents 或 Quill、QuillSub、CONTENTS)
java.io.IOException
(java.io.IOException)
public void writeOut(DirectoryNode baseDir) throws java.io.IOException
java.io.IOException
(java.io.IOException)
protected abstract void generateData()
public final byte[] getData()
protected final void setData(byte[] data)
public final java.lang.String[] getPath()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.