protected void copyData(Reader reader, Writer writer) throws IOException { super.copyData(new SplitLineReader(reader), new SplitLineWriter(writer)); }
private void finishIfNecessary(DataEntry dataEntry) throws IOException { // Would the new data entry end up in a different jar? if (currentParentEntry != null && !dataEntryWriter.sameOutputStream(currentParentEntry, dataEntry.getParent())) { finish(); } }
public boolean createDirectory(DataEntry dataEntry) throws IOException { // Get the right data entry writer. DataEntryWriter dataEntryWriter = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryWriter : rejectedDataEntryWriter; // Delegate to it, if it's not null. return dataEntryWriter != null && dataEntryWriter.createDirectory(dataEntry); }
public OutputStream createOutputStream(DataEntry dataEntry) throws IOException { // Get the right data entry writer. DataEntryWriter dataEntryWriter = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryWriter : rejectedDataEntryWriter; // Delegate to it, if it's not null. return dataEntryWriter != null ? dataEntryWriter.createOutputStream(dataEntry) : null; }
public boolean sameOutputStream(DataEntry dataEntry1, DataEntry dataEntry2) throws IOException { boolean accepts1 = dataEntryFilter.accepts(dataEntry1); boolean accepts2 = dataEntryFilter.accepts(dataEntry2); return accepts1 ? !accepts2 || acceptedDataEntryWriter == null || acceptedDataEntryWriter.sameOutputStream(dataEntry1, dataEntry2) : accepts2 || rejectedDataEntryWriter == null || rejectedDataEntryWriter.sameOutputStream(dataEntry1, dataEntry2); }
public boolean createDirectory(DataEntry dataEntry) throws IOException { return dataEntryWriter.createDirectory(renamedDataEntry(dataEntry)); }
public OutputStream createOutputStream(DataEntry dataEntry) throws IOException { // Write all default extra entries. writeExtraEntries(dataEntry, null); // Write all extra entries attached to the current data entry. writeExtraEntries(dataEntry); // Delegate to write out the actual entry. return dataEntryWriter.createOutputStream(dataEntry); }
public boolean sameOutputStream(DataEntry dataEntry1, DataEntry dataEntry2) throws IOException { return dataEntryWriter.sameOutputStream(renamedDataEntry(dataEntry1), renamedDataEntry(dataEntry2)); }
public OutputStream createOutputStream() throws IOException { return compressed ? (OutputStream)new CompressedZipEntryOutputStream() : (OutputStream)new UncompressedZipEntryOutputStream(); }
public OutputStream getOutputStream(DataEntry dataEntry, Finisher finisher) throws IOException { return dataEntryWriter.getOutputStream(dataEntry.getParent(), finisher); }
public OutputStream getOutputStream(DataEntry dataEntry, Finisher finisher) throws IOException { // Get the right data entry writer. DataEntryWriter dataEntryWriter = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryWriter : rejectedDataEntryWriter; // Delegate to it, if it's not null. return dataEntryWriter != null ? dataEntryWriter.getOutputStream(dataEntry, finisher) : null; }
public void read(DataEntry dataEntry) throws IOException { // Delegate to the actual data entry reader. dataEntryReader.read(renamedDataEntry(dataEntry)); }
protected void copyData(Reader reader, Writer writer) throws IOException { super.copyData(new SplitLineReader(reader), new SplitLineWriter(writer)); }
private void finishIfNecessary(DataEntry dataEntry) throws IOException { // Would the new data entry end up in a different jar? if (currentParentEntry != null && !dataEntryWriter.sameOutputStream(currentParentEntry, dataEntry.getParent())) { finish(); } }
protected void copyData(Reader reader, Writer writer) throws IOException { super.copyData(new SplitLineReader(reader), new SplitLineWriter(writer)); }
private void finishIfNecessary(DataEntry dataEntry) throws IOException { // Would the new data entry end up in a different jar? if (currentParentEntry != null && !dataEntryWriter.sameOutputStream(currentParentEntry, dataEntry.getParent())) { finish(); } }
protected void copyData(Reader reader, Writer writer) throws IOException { super.copyData(new SplitLineReader(reader), new SplitLineWriter(writer)); }