org.apache.poi.hssf.record.Record.getRecordSize()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中org.apache.poi.hssf.record.Record.getRecordSize方法的一些代码示例,展示了Record.getRecordSize的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getRecordSize方法的具体详情如下:
包路径:org.apache.poi.hssf.record.Record
类名称:Record
方法名:getRecordSize

Record.getRecordSize介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi

public void visitRecord(Record r) {
    _totalSize += r.getRecordSize();
  }
}

代码示例来源: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.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

public void visitRecord(Record r) {
  _position += r.getRecordSize();
  _rv.visitRecord(r);
}
public void setPosition(int position) {

代码示例来源:origin: org.apache.poi/poi

private int visitRowRecordsForBlock(int blockIndex, RecordVisitor rv) {
  final int startIndex = blockIndex*DBCellRecord.BLOCK_SIZE;
  final int endIndex = startIndex + DBCellRecord.BLOCK_SIZE;
  Iterator<RowRecord> rowIterator = _rowRecords.values().iterator();
  //Given that we basically iterate through the rows in order,
  //For a performance improvement, it would be better to return an instance of
  //an iterator and use that instance throughout, rather than recreating one and
  //having to move it to the right position.
  int i=0;
  for (;i<startIndex;i++)
   rowIterator.next();
  int result = 0;
  while(rowIterator.hasNext() && (i++ < endIndex)) {
   Record rec = rowIterator.next();
   result += rec.getRecordSize();
   rv.visitRecord(rec);
  }
  return result;
}

代码示例来源:origin: org.apache.poi/poi

objRecordSize += r.getRecordSize();

代码示例来源: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

rs.nextRecord();
rec = RecordFactory.createSingleRecord(rs);
recSize += rec.getRecordSize();
outputRecs.add(rec);
rs.nextRecord();
rec = RecordFactory.createSingleRecord(rs);
recSize += rec.getRecordSize();
outputRecs.add(rec);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public void visitRecord(Record r) {
    _totalSize += r.getRecordSize();
  }
}

代码示例来源:origin: com.haulmont.thirdparty/poi

public void visitRecord(Record r) {
    _totalSize += r.getRecordSize();
  }
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

public void visitRecord(Record r) {
    _totalSize += r.getRecordSize();
  }
}

代码示例来源:origin: com.haulmont.thirdparty/poi

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

public void visitRecord(Record r) {
  _list.add(r);
  _totalSize+=r.getRecordSize();
}
public int serialize(int offset, byte[] data) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

@Override
public void visitRecord(Record r) {
  _list.add(r);
  _totalSize+=r.getRecordSize();
}
public int serialize(int offset, byte[] data) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public void visitRecord(Record r) {
  _position += r.getRecordSize();
  _rv.visitRecord(r);
}
public void setPosition(int position) {

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

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;
}

代码示例来源:origin: com.haulmont.thirdparty/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.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: com.haulmont.thirdparty/poi

public void visitRecord(Record r) {
  _position += r.getRecordSize();
  _rv.visitRecord(r);
}
public void setPosition(int position) {

相关文章