本文整理了Java中org.apache.poi.hssf.record.Record
类的一些代码示例,展示了Record
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record
类的具体详情如下:
包路径:org.apache.poi.hssf.record.Record
类名称:Record
[英]All HSSF Records inherit from this class.
[中]所有HSSF记录都继承自此类。
代码示例来源:origin: org.apache.poi/poi
/**
* These records may occur between the 'Worksheet Protection Block' and DIMENSION:
* <pre>
* o DEFCOLWIDTH
* oo COLINFO
* o SORT
* </pre>
*/
private static boolean isProtectionSubsequentRecord(Object rb) {
if (rb instanceof ColumnInfoRecordsAggregate) {
return true; // oo COLINFO
}
if (rb instanceof Record) {
Record record = (Record) rb;
switch (record.getSid()) {
case DefaultColWidthRecord.sid:
case UnknownRecord.SORT_0090:
return true;
}
}
return false;
}
代码示例来源:origin: org.apache.poi/poi
public void visitRecord(Record r) {
try {
_destList.add((Record)r.clone());
} catch (CloneNotSupportedException e) {
throw new RecordFormatException(e);
}
}
}
代码示例来源:origin: org.apache.poi/poi
public int getSize() {
int retval = 0;
SSTRecord lSST = null;
for ( Record record : records.getRecords() ) {
if (record instanceof SSTRecord) {
lSST = (SSTRecord)record;
}
if (record.getSid() == ExtSSTRecord.sid && lSST != null) {
retval += lSST.calcExtSSTRecordSize();
} else {
retval += record.getRecordSize();
}
}
return retval;
}
代码示例来源:origin: org.apache.poi/poi
/**
* called by the class that is responsible for writing this sucker.
* Subclasses should implement this so that their data is passed back in a
* byte array.
*
* @return byte array containing instance data
*/
public final byte[] serialize() {
byte[] retval = new byte[ getRecordSize() ];
serialize(0, retval);
return retval;
}
代码示例来源:origin: org.apache.poi/poi
sstPos = pos;
if (record.getSid() == ExtSSTRecord.sid && lSST != null) {
record = lSST.createExtSSTRecord(sstPos + offset);
len = record.serialize( pos + offset, data );
代码示例来源:origin: com.haulmont.thirdparty/poi
if (dumpInterpretedRecords) {
record = createRecord (recStream);
if (record.getSid() == ContinueRecord.sid) {
continue;
ps.println(headers[i]);
ps.print(record.toString());
代码示例来源:origin: org.apache.poi/poi
public void visitRecord(Record r) {
_totalSize += r.getRecordSize();
}
}
代码示例来源:origin: org.apache.poi/poi
public int serialize(int offset, byte[] data) {
int result = 0;
for (Record rec : _list) {
result += rec.serialize(offset + result, data);
}
return result;
}
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public void processRecord(Record rec)
{
System.out.println(rec.toString());
}
});
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
sstPos = pos;
if (record.getSid() == ExtSSTRecord.sid && lSST != null) {
record = lSST.createExtSSTRecord(sstPos + offset);
len = record.serialize( pos + offset, data );
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
if (dumpInterpretedRecords) {
record = createRecord (recStream);
if (record.getSid() == ContinueRecord.sid) {
continue;
ps.println(headers[i]);
ps.print(record.toString());
代码示例来源:origin: org.apache.poi/poi
@Override
public void visitRecord(Record r) {
_list.add(r);
_totalSize+=r.getRecordSize();
}
public int serialize(int offset, byte[] data) {
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* called by the class that is responsible for writing this sucker.
* Subclasses should implement this so that their data is passed back in a
* byte array.
*
* @return byte array containing instance data
*/
public final byte[] serialize() {
byte[] retval = new byte[ getRecordSize() ];
serialize(0, retval);
return retval;
}
代码示例来源:origin: org.apache.poi/poi
public void visitRecord(Record r) {
int currentOffset = _startOffset + _countBytesWritten;
_countBytesWritten += r.serialize(currentOffset, _data);
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void processRecord(Record rec)
{
System.out.println(rec.toString());
}
});
代码示例来源:origin: org.apache.poi/poi
private static boolean isDVTPriorRecord(RecordBase rb) {
if (rb instanceof MergedCellsTable || rb instanceof ConditionalFormattingTable) {
return true;
}
short sid = ((Record)rb).getSid();
switch(sid) {
case WindowTwoRecord.sid:
case UnknownRecord.SCL_00A0:
case PaneRecord.sid:
case SelectionRecord.sid:
case UnknownRecord.STANDARDWIDTH_0099:
// MergedCellsTable
case UnknownRecord.LABELRANGES_015F:
case UnknownRecord.PHONETICPR_00EF:
// ConditionalFormattingTable
case HyperlinkRecord.sid:
case UnknownRecord.QUICKTIP_0800:
// name of a VBA module
case UnknownRecord.CODENAME_1BA:
return true;
}
return false;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
public int getSize() {
int retval = 0;
SSTRecord lSST = null;
for ( Record record : records.getRecords() ) {
if (record instanceof SSTRecord) {
lSST = (SSTRecord)record;
}
if (record.getSid() == ExtSSTRecord.sid && lSST != null) {
retval += lSST.calcExtSSTRecordSize();
} else {
retval += record.getRecordSize();
}
}
return retval;
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
sstPos = pos;
if (record.getSid() == ExtSSTRecord.sid && sst != null)
len = record.serialize( pos + offset, data );
代码示例来源:origin: org.apache.poi/poi
public void visitRecord(Record r) {
_position += r.getRecordSize();
_rv.visitRecord(r);
}
public void setPosition(int position) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* called by the class that is responsible for writing this sucker.
* Subclasses should implement this so that their data is passed back in a
* byte array.
*
* @return byte array containing instance data
*/
public final byte[] serialize() {
byte[] retval = new byte[ getRecordSize() ];
serialize(0, retval);
return retval;
}
内容来源于网络,如有侵权,请联系作者删除!