FileDocCategorySizeDatePackage
InteractiveInfo.javaAPI DocApache Poi 3.0.12960Sun Mar 11 12:59:30 GMT 2007org.apache.poi.hslf.record

InteractiveInfo

public class InteractiveInfo extends RecordContainer
This class represents the metadata of a link in a slide/notes/etc. It normally just holds a InteractiveInfoAtom, with the metadata in it.
author
Nick Burch

Fields Summary
private byte[]
_header
private static long
_type
private InteractiveInfoAtom
infoAtom
Constructors Summary
protected InteractiveInfo(byte[] source, int start, int len)
Set things up, and find our more interesting children

		// Grab the header
		_header = new byte[8];
		System.arraycopy(source,start,_header,0,8);

		// Find our children
		_children = Record.findChildRecords(source,start+8,len-8);
		findInterestingChildren();
	
public InteractiveInfo()
Create a new InteractiveInfo, with blank fields

		_header = new byte[8];
		_children = new Record[1];
		
		// Setup our header block
		_header[0] = 0x0f; // We are a container record
		LittleEndian.putShort(_header, 2, (short)_type);
		
		// Setup our child records
		infoAtom = new InteractiveInfoAtom();
		_children[0] = infoAtom;
	
Methods Summary
private voidfindInterestingChildren()
Go through our child records, picking out the ones that are interesting, and saving those for use by the easy helper methods.

		// First child should be the InteractiveInfoAtom
		if(_children[0] instanceof InteractiveInfoAtom) {
			infoAtom = (InteractiveInfoAtom)_children[0];
		} else {
			throw new IllegalStateException("First child record wasn't a InteractiveInfoAtom, was of type " + _children[0].getRecordType());
		}
	
public org.apache.poi.hslf.record.InteractiveInfoAtomgetInteractiveInfoAtom()
Returns the InteractiveInfoAtom of this InteractiveInfo

	
	       	  
	    return infoAtom; 
public longgetRecordType()
We are of type 4802

 return _type; 
public voidwriteOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk

		writeOut(_header[0],_header[1],_type,_children,out);