/** * Have the contents printer out into an OutputStream, used when * writing a file back out to disk. * * @param out the output stream. * @throws IOException if there was an error writing to the stream. */ @Override public void writeOut(final OutputStream out) throws IOException { writeOut(_header[0],_header[1],getRecordType(),_children,out); }
/** * Have the contents printer out into an OutputStream, used when * writing a file back out to disk. * * @param out the output stream. * @throws IOException if there was an error writing to the stream. */ public void writeOut(OutputStream out) throws IOException { writeOut(_header[0],_header[1],getRecordType(),_children,out); } }
/** * Create a new ExEmbed, with blank fields */ public ExEmbed() { _header = new byte[8]; _children = new Record[5]; // Setup our header block _header[0] = 0x0f; // We are a container record LittleEndian.putShort(_header, 2, (short)getRecordType()); // Setup our child records final CString cs1 = new CString(); cs1.setOptions(0x1 << 4); final CString cs2 = new CString(); cs2.setOptions(0x2 << 4); final CString cs3 = new CString(); cs3.setOptions(0x3 << 4); _children[0] = new ExEmbedAtom(); _children[1] = new ExOleObjAtom(); _children[2] = cs1; _children[3] = cs2; _children[4] = cs3; findInterestingChildren(); }
/** * Create a new ExEmbed, with blank fields */ public ExEmbed() { _header = new byte[8]; _children = new Record[5]; // Setup our header block _header[0] = 0x0f; // We are a container record LittleEndian.putShort(_header, 2, (short)getRecordType()); // Setup our child records CString cs1 = new CString(); cs1.setOptions(0x1 << 4); CString cs2 = new CString(); cs2.setOptions(0x2 << 4); CString cs3 = new CString(); cs3.setOptions(0x3 << 4); _children[0] = new ExEmbedAtom(); _children[1] = new ExOleObjAtom(); _children[2] = cs1; _children[3] = cs2; _children[4] = cs3; findInterestingChildren(); }