All Questions
5 questions
3
votes
1
answer
173
views
Processing a binary file with buffer length tags
I am trying to process a very large binary file using MappedByteBuffer from java.nio package.
This is how the data looks like in the file:
...
3
votes
2
answers
221
views
Message encode/decode library
I write protocol messages encoder/decoder for my project.
All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body.
There are two types of messages:
Plain message - ...
3
votes
1
answer
231
views
Settings class implementation
I have a settings.txt file with the following format:
...
4
votes
2
answers
180
views
Serializing data from two URLs in the same object efficiently
This is a follow-up to: Serializing JSON data coming from two URLs in the same object
I have two URLs (urlA and urlB) and they ...
7
votes
1
answer
28k
views
Parse strings and convert the value to .java types
Below is a generic code for parsing strings (read from file for example) and converting them to .java types, such as primitives (and their wrappers), java.io.File, Enum etc. There is also possible to ...