Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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: ...
SuhasG's user avatar
  • 33
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 - ...
bw_dev's user avatar
  • 267
3 votes
1 answer
231 views

Settings class implementation

I have a settings.txt file with the following format: ...
potato's user avatar
  • 1,122
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 ...
arsenal's user avatar
  • 2,187
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 ...
drapostolos's user avatar