Is there an equivalent to a bytestream in kotlin? ...
# announcements
a
Is there an equivalent to a bytestream in kotlin? I see byte array, but the file I’m working with may be arbitrarily large. I’d like to be able to read data with different sizes (Reading a java class file, where values can be 2 bytes, 4 bytes, etc)
n
Just use the regular Java IO classes (
InputStream
,
OutputStream
)
1
c
I'd recommend okio library from Square