All Questions
2 questions
7
votes
1
answer
13k
views
Benefits of Java ByteArrayInputStream vs byte array?
I have a scenario where my Java process will be receiving a stream of binary data:
public class DataHandler {
public void handleData(DATA data) {
// TODO: Do something with data
}
}
...
42
votes
12
answers
6k
views
Is there an alternative to bits?
Is there an alternative to bits as the smallest unit of data? Something that won't be only 0 or 1, but actually hold many possible states in between? Wouldn't it be more natural to store floats like ...