org.apache.poi.hssf.record
Class ContinueRecord

java.lang.Object
  extended by org.apache.poi.hssf.record.RecordBase
      extended by org.apache.poi.hssf.record.Record
          extended by org.apache.poi.hssf.record.ContinueRecord

public final class ContinueRecord
extends Record

Title: Continue Record(0x003C) - Helper class used primarily for SST Records

Description: handles overflow for prior record in the input stream; content is tailored to that prior record

Author:
Marc Johnson (mjohnson at apache dot org), Andrew C. Oliver (acoliver at apache dot org), Csaba Nagy (ncsaba at yahoo dot com)

Field Summary
static short sid
           
 
Constructor Summary
ContinueRecord(byte[] data)
           
ContinueRecord(RecordInputStream in)
          Fill the fields.
 
Method Summary
 java.lang.Object clone()
           
 byte[] getData()
          get the data for continuation
 short getSid()
          return the non static version of the id for this record.
 byte[] serialize()
          USE ONLY within "processContinue"
 int serialize(int offset, byte[] data)
          called by the class that is responsible for writing this sucker.
 java.lang.String toString()
          get a string representation of the record (for biffview/debugging)
static int write(byte[] destBuf, int destOffset, java.lang.Byte initialDataByte, byte[] srcData)
          Writes the full encoding of a Continue record without making an instance
static int write(byte[] destBuf, int destOffset, java.lang.Byte initialDataByte, byte[] srcData, int srcOffset, int len)
           
 
Methods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, getRecordSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sid

public static final short sid
See Also:
Constant Field Values
Constructor Detail

ContinueRecord

public ContinueRecord(byte[] data)

ContinueRecord

public ContinueRecord(RecordInputStream in)
Fill the fields. Only thing is, this record has no fields --

Parameters:
in - the RecordInputstream to read the record from
Method Detail

serialize

public byte[] serialize()
USE ONLY within "processContinue"

Overrides:
serialize in class Record
Returns:
byte array containing instance data

serialize

public int serialize(int offset,
                     byte[] data)
Description copied from class: RecordBase
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.

Specified by:
serialize in class RecordBase
Parameters:
offset - to begin writing at
data - byte array containing instance data
Returns:
number of bytes written

getData

public byte[] getData()
get the data for continuation

Returns:
byte array containing all of the continued data

toString

public java.lang.String toString()
Description copied from class: Record
get a string representation of the record (for biffview/debugging)

Overrides:
toString in class Record

getSid

public short getSid()
Description copied from class: Record
return the non static version of the id for this record.

Specified by:
getSid in class Record

clone

public java.lang.Object clone()
Overrides:
clone in class Record

write

public static int write(byte[] destBuf,
                        int destOffset,
                        java.lang.Byte initialDataByte,
                        byte[] srcData)
Writes the full encoding of a Continue record without making an instance


write

public static int write(byte[] destBuf,
                        int destOffset,
                        java.lang.Byte initialDataByte,
                        byte[] srcData,
                        int srcOffset,
                        int len)
Parameters:
initialDataByte - (optional - often used for unicode flag). If supplied, this will be written before srcData
Returns:
the total number of bytes written


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.