java :: NativeInputStream :: read_all
# Read and return all the content of this stream
private fun read_all: JavaString in "Java" `{
// `available` returns the n of bytes currently available, not the total.
// This may cause problems in the future with large asset files.
try {
int size = self.available();
byte[] bytes = new byte[size];
self.read(bytes, 0, size);
return new String(bytes);
} catch (java.lang.Exception exception) {
exception.printStackTrace();
return null;
}
`}
lib/android/assets.nit:55,2--69,3