5253545556575859606162
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); } });
82838485868788899091929394
} @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(); } }; }