public boolean accepts(DataEntry dataEntry) { return dataEntry != null && dataEntryFilter.accepts(dataEntry.getParent()); } }
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 boolean accepts(DataEntry dataEntry) { return dataEntry != null && dataEntryFilter.accepts(dataEntry.getParent()); } }
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 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 { DataEntryReader dataEntryReader = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryReader : rejectedDataEntryReader; if (dataEntryReader != null) { dataEntryReader.read(dataEntry); } } }
public boolean accepts(DataEntry dataEntry) { return dataEntry != null && dataEntryFilter.accepts(dataEntry.getParent()); } }
public void read(DataEntry dataEntry) throws IOException { DataEntryReader dataEntryReader = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryReader : rejectedDataEntryReader; if (dataEntryReader != null) { dataEntryReader.read(dataEntry); } } }
public void read(DataEntry dataEntry) throws IOException { DataEntryReader dataEntryReader = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryReader : rejectedDataEntryReader; if (dataEntryReader != null) { dataEntryReader.read(dataEntry); } } }
public boolean accepts(DataEntry dataEntry) { return dataEntry != null && dataEntryFilter.accepts(dataEntry.getParent()); } }
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 void read(DataEntry dataEntry) throws IOException { DataEntryReader dataEntryReader = dataEntryFilter.accepts(dataEntry) ? acceptedDataEntryReader : rejectedDataEntryReader; if (dataEntryReader != null) { dataEntryReader.read(dataEntry); } } }
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 { // 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 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 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 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; }