All Questions
179 questions
2
votes
1
answer
176
views
Getting all column vs. table regardless of alias using JSqlParser
I have been trying to get all column vs. table regardless of alias used, for example, assume this query
...
6
votes
1
answer
334
views
Simple XML string to user-friendly plain text converter method in Java
I want to write a simple method in Java to convert XML to some user-friendly plain format (like YAML, etc.).
Attributes, null, empty or zero values should not be taken into account. Also, documents ...
6
votes
4
answers
894
views
Very simple CSV-parser in Java
Please take a look at my method for parsing a CSV string.
I am looking for a simple approach without using an external library.
Is throwing a RuntimeException ...
3
votes
1
answer
222
views
Parsing Java's class file
The structure of a class file consists of a single structure (presented here using pseudostructures written in a C-like structure notation):
...
2
votes
1
answer
55
views
Parsing one UserData type to a preview
I am currently developing a web app and am using Spring as a Backend. I have some user data that is provided by one of our services and I need to display it in my frontend.
The subject of the code ...
0
votes
1
answer
106
views
Retrieve data from an XML file in Java
few months back I did a code test for a company and I quickly managed to solve it within 5-10 minutes. But, I got rejected because it wasnt "good enough".
What is good enough? they said its ...
2
votes
2
answers
629
views
Parse a text file, and map to an out-of-scope POJO
I need to parse a file, with a standard formatting:
...
1
vote
2
answers
176
views
Parse string using character value for Unicode characters
I added the getCValue method to reduce the cyclomatic complexity, but the cyclomatic complexity still persists. How can I reduce it? Can I change this code using ...
3
votes
1
answer
169
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:
...
1
vote
2
answers
212
views
Function to read a file until next token
I've got this function which reads an entry until the next starting Token determined through a function, as the nature of the token is flexible.
Usage:
...
3
votes
0
answers
123
views
Mini Scheme interpreter
Right now, I'm working on an interpreter for a subset of the Scheme programming language. It supports lambdas, let/let*/letrec, procedures, combinations, ...
0
votes
2
answers
1k
views
Good practices for parsing this text file
I have the following .txt file structure that i want to parse in Java(8):
...
1
vote
2
answers
232
views
Parsing words from string
I am learning Java, so I am beginner. I know I can do this with split function but I want to improve my algorithm knowledge.
I will be glad if you help me. Thanks.
inputStr variable is contains the ...
0
votes
2
answers
136
views
Parse file and make output in custom List [closed]
I have a file output like this and want to do parsing and put the output into a List. The biggest problem here is the name of a wake-lock which appears after ID and runtime, in some cases, it contains ...
2
votes
2
answers
217
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 - ...