private void extractSavedByMetadata(HWPFDocument document) { SavedByTable savedByTable = document.getSavedByTable(); if (savedByTable == null) { return; } for (SavedByEntry sbe : savedByTable.getEntries()) { metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, sbe.getSaveLocation()); } }
/** * Returns a string for display. * * @return the string. */ public String toString() { return "SavedByEntry[userName=" + getUserName() + ",saveLocation=" + getSaveLocation() + "]"; } }
/** * Returns a string for display. * * @return the string. */ public String toString() { return "SavedByEntry[userName=" + getUserName() + ",saveLocation=" + getSaveLocation() + "]"; } }
/** * Writes this table to the table stream. * * @param tableStream * the table stream to write to. * @throws IOException * if an error occurs while writing. */ public void writeTo( ByteArrayOutputStream tableStream ) throws IOException { String[] toSave = new String[entries.length * 2]; int counter = 0; for ( SavedByEntry entry : entries ) { toSave[counter++] = entry.getUserName(); toSave[counter++] = entry.getSaveLocation(); } SttbUtils.writeSttbSavedBy( toSave, tableStream ); }
/** * Writes this table to the table stream. * * @param tableStream * the table stream to write to. * @throws IOException * if an error occurs while writing. */ public void writeTo( HWPFOutputStream tableStream ) throws IOException { String[] toSave = new String[entries.length * 2]; int counter = 0; for ( SavedByEntry entry : entries ) { toSave[counter++] = entry.getUserName(); toSave[counter++] = entry.getSaveLocation(); } SttbUtils.writeSttbSavedBy( toSave, tableStream ); }
private void extractSavedByMetadata(HWPFDocument document) { SavedByTable savedByTable = document.getSavedByTable(); if (savedByTable == null) { return; } for (SavedByEntry sbe : savedByTable.getEntries()) { metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, sbe.getSaveLocation()); } }
private void extractSavedByMetadata(HWPFDocument document) { SavedByTable savedByTable = document.getSavedByTable(); if (savedByTable == null) { return; } for (SavedByEntry sbe : savedByTable.getEntries()) { metadata.add(TikaCoreProperties.ORIGINAL_RESOURCE_NAME, sbe.getSaveLocation()); } }