Skip to content

Commit

Permalink
RCB
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-schlichtherle committed Oct 22, 2018
1 parent 0585bdd commit 8a98897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ abstract class ZipArchiveEntrySource extends ArchiveEntrySource<ZipArchiveEntry>

abstract Socket<InputStream> rawInput();

public abstract ZipArchiveEntry entry();
abstract ZipArchiveEntry entry();
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,22 @@ private ZipArchiveEntrySource source(ZipArchiveEntry entry) {
return new ZipArchiveEntrySource() {

@Override
public String name() { return entry.getName(); }
public Socket<InputStream> input() { return () -> zip.getInputStream(entry); }

@Override
public long size() { return entry.getSize(); }
Socket<InputStream> rawInput() { return () -> zip.getRawInputStream(entry); }

@Override
public boolean isDirectory() { return entry.isDirectory(); }
ZipArchiveEntry entry() { return entry; }

@Override
public ZipArchiveEntry entry() { return entry; }
public String name() { return entry.getName(); }

@Override
public Socket<InputStream> input() { return () -> zip.getInputStream(entry); }
public long size() { return entry.getSize(); }

Socket<InputStream> rawInput() { return () -> zip.getRawInputStream(entry); }
@Override
public boolean isDirectory() { return entry.isDirectory(); }
};
}

Expand Down

0 comments on commit 8a98897

Please sign in to comment.