@Override public EmbeddedData extract(DirectoryNode dn) throws IOException { try { // TODO: inspect the CompObj record for more details, i.e. the content type Ole10Native ole10 = Ole10Native.createFromEmbeddedOleObject(dn); return new EmbeddedData(ole10.getFileName(), ole10.getDataBuffer(), CONTENT_TYPE_BYTES); } catch (Ole10NativeException e) { throw new IOException(e); } } }
leos.write(0); leos.writeInt(getDataSize()); leos.write(getDataBuffer()); leos.writeShort(getFlags3()); leosOut.writeInt(getDataSize()+LittleEndianConsts.SHORT_SIZE); leosOut.writeShort(getFlags1()); out.write(getDataBuffer()); break; default: case unparsed: leosOut.writeInt(getDataSize()); out.write(getDataBuffer()); break;
data = ole.getDataBuffer();
ret = ole.getDataBuffer(); } catch (Ole10NativeException ex) {
@Override public EmbeddedData extract(DirectoryNode dn) throws IOException { try { // TODO: inspect the CompObj record for more details, i.e. the content type Ole10Native ole10 = Ole10Native.createFromEmbeddedOleObject(dn); return new EmbeddedData(ole10.getFileName(), ole10.getDataBuffer(), CONTENT_TYPE_BYTES); } catch (Ole10NativeException e) { throw new IOException(e); } } }
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); if (data != null) { stream = TikaInputStream.get(data);
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); embedded = TikaInputStream.get(data); } catch (Ole10NativeException ex) {
leos.write(0); leos.writeInt(getDataSize()); leos.write(getDataBuffer()); leos.writeShort(getFlags3()); leosOut.writeInt(getDataSize()+LittleEndianConsts.SHORT_SIZE); leosOut.writeShort(getFlags1()); out.write(getDataBuffer()); break; default: case unparsed: leosOut.writeInt(getDataSize()); out.write(getDataBuffer()); break;
ret = ole.getDataBuffer(); } catch (Ole10NativeException ex) {
ret = ole.getDataBuffer(); } catch (Ole10NativeException ex) {
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); if (data != null) { stream = TikaInputStream.get(data);
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); if (data != null) { stream = TikaInputStream.get(data);
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); embedded = TikaInputStream.get(data); } catch (Ole10NativeException ex) {
metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, ole.getFileName()); byte[] data = ole.getDataBuffer(); embedded = TikaInputStream.get(data); } catch (Ole10NativeException ex) {