Join Slack
Powered by
Is there an equivalent to a bytestream in kotlin? ...
# announcements
a
Allan Wang
04/28/2019, 9:11 PM
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
nulldev
04/28/2019, 9:17 PM
Just use the regular Java IO classes (
InputStream
,
OutputStream
)
➕ 1
c
chalup
04/29/2019, 6:41 AM
I'd recommend okio library from Square
7
Views
Open in Slack
Previous
Next