Skip to main content

All Questions

Tagged with
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 ...
srilakshmikanthanp's user avatar
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 ...
Tobias Grothe's user avatar
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 ...
Tobias Grothe's user avatar
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): ...
Madagascar's user avatar
  • 10.1k
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 ...
monamona's user avatar
  • 475
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 ...
Con101's user avatar
  • 3
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: ...
Maxime's user avatar
  • 123
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 ...
stromboli's user avatar
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: ...
SuhasG's user avatar
  • 33
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: ...
Eldros's user avatar
  • 449
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, ...
TheSinisterStone's user avatar
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): ...
singh raj's user avatar
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 ...
Mestedepsu's user avatar
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 ...
Danijel Markov's user avatar
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 - ...
bw_dev's user avatar
  • 257

15 30 50 per page
1
2 3 4 5
12