@Internal public final class PAPFormattedDiskPage extends FormattedDiskPage
_crun, _fkp, _offset
Constructor and Description |
---|
PAPFormattedDiskPage() |
PAPFormattedDiskPage(byte[] documentStream, byte[] dataStream, int offset, CharIndexTranslator translator)
Creates a PAPFormattedDiskPage from a 512 byte array
|
Modifier and Type | Method and Description |
---|---|
void |
fill(java.util.List<PAPX> filler)
Fills the queue for writing.
(填充队列以进行写入。)
|
protected byte[] |
getGrpprl(int index)
Gets the papx grpprl for the paragraph at index in this fkp.
(获取此 fkp 中索引处段落的 papx grpprl。)
|
PAPX |
getPAPX(int index)
Gets the PAPX at index.
(获取索引处的 PAPX。)
|
java.util.List<PAPX> |
getPAPXs() |
protected byte[] |
toByteArray(java.io.ByteArrayOutputStream dataStream, CharIndexTranslator translator)
Creates a byte array representation of this data structure.
(创建此数据结构的字节数组表示。)
|
getEnd, getStart, size
public PAPFormattedDiskPage()
public PAPFormattedDiskPage(byte[] documentStream, byte[] dataStream, int offset, CharIndexTranslator translator)
public void fill(java.util.List<PAPX> filler)
filler
- a List of PAPXs
(填充物 - PAPX 列表)
public PAPX getPAPX(int index)
index
- The index to get the PAPX for.
(index - 获取 PAPX 的索引。)
public java.util.List<PAPX> getPAPXs()
protected byte[] getGrpprl(int index)
getGrpprl
in class
FormattedDiskPage
(FormattedDiskPage 类中的 getGrpprl)
index
- The index of the papx to get.
(index - 要获取的 papx 的索引。)
protected byte[] toByteArray(java.io.ByteArrayOutputStream dataStream, CharIndexTranslator translator) throws java.io.IOException
dataStream
- required if PAPX is too big to fit in FKP
(dataStream - 如果 PAPX 太大而无法放入 FKP,则需要)
java.io.IOException
- if an I/O error occurs.
(java.io.IOException - 如果发生 I/O 错误。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.