5354555657585960616263
out.close(); return register(out.toByteArray()); } public String register(final byte[] data) { return register(new Resource() { public InputStream open() throws IOException { return new ByteArrayInputStream(data); } });
83848586878889909192939495
} @Override public InputStream getInputStream() throws IOException { connect(); Long idx = Long.parseLong(getURL().getPath()); Resource res = documents.get(idx); if (res == null) { throw new FileNotFoundException(getURL().toString()); } return res.open(); } }; }