/guava/guava/src/com/google/common/io/ByteSource.java
Optional<Long> size = size( ) ;
Optional<Long> size = sizeIfKnown ( ) ;
} } public byte[] read() throws IOException { Closer closer = Closer.create(); try { InputStream in = closer.register(openStream()); <extra_id_0> return size.isPresent() ? ByteStreams.toByteArray(in, size.get()) : ByteStreams.toByteArray(in); } catch (Throwable e) { throw closer.rethrow(e); } finally {