Questions tagged [javolution]

Javolution is a hard-real-time collections library.

Javolution is a hard-real-time collections library that provides a compatible replacement to the Standard Java Collections libraries.

27 questions
1
vote
0 answers

How to declare a C nested struct in a Java class

I'm trying to map a c struct to a Java class. Everything works fine so far but I don't know how to map a struct which has another struct as a member. In the Struct class javadoc there is an example of a struct containing a pointer to the same struct…
McOwen
  • 11
  • 3
1
vote
1 answer

Find exception thrown by 3rd party library

I hope I can explain this correctly. I am using the Javolution library to do reading and writing of an XML config file. I'm using XMLStreamReader/Writer. During reading, I'm looking to read a tag and store its attributes in a LinkedHashMap. …
MeanwhileInHell
  • 6,780
  • 17
  • 57
  • 106
1
vote
2 answers

Java: parse text into primitive numbers without object instantiation

Using the java language I read text files that contain numbers. There are terabytes of data and hundreds of billions of numbers. The goal is to fetch the data as fast as possible, and minimize GC activity. I want to parse text directly into…
Antoine CHAMBILLE
  • 1,676
  • 2
  • 13
  • 29
0
votes
1 answer

Java: Javolution: How to use UTF8StreamReader properly? Error occurs Caused by: java.lang.ArrayIndexOutOfBoundsException: 2048

Here's the code: public static void mergeAllFilesJavolution()throws FileNotFoundException, IOException { String fileDir = "C:\\TestData\\w12"; File dirSrc = new File(fileDir); File[] list = dirSrc.listFiles(); long start =…
eros
  • 4,946
  • 18
  • 53
  • 78
0
votes
1 answer

how to Call setter method dynamic using Fields set value?

In my code i have some class that need to be deliver ( send using UDP ) to some server that the element struct that he receive contain Unsigned32 type values. I using javolution to define the element struct => import javolution.io.Struct; public…
Yanshof
  • 9,659
  • 21
  • 95
  • 195
0
votes
0 answers

Javolution Struct allocations of arrays

Trying to allocate (direct memory) with Javolution.Struct that contains arrays, and the memory "explodes". No idea why, Would love to have a clue Class A holds array of 50 of class B. Class B holds array of 1 million unsigned shorts: import…
Li3ro
  • 1,837
  • 2
  • 27
  • 35
0
votes
0 answers

Is there a way to convert a Javolution Struct object to json using Gson/Jackson?

I have tried to use Gson to create a json object from Javolution Struct object. It gives errors because Javolution Struct object is not a regular POJO. Is there a way to do it or it cant be done? [Edit 1]: Errors Exception in thread "dv-1-1"…
Sam
  • 61
  • 6
0
votes
1 answer

Struct Javolution Lib Byteorder and Byte alignment

How to set the byte or word alignment using javolution lib. This is like #pragma in CPP. I am little bit confuse about the byte order. Please suggest me for the byte Order set in the same library.
Kamahire
  • 2,149
  • 3
  • 21
  • 50
0
votes
1 answer

How should I configure pom.xml to keep A and B in my private local Maven repo cache while using Maven Central and java.net's Maven repositories?

How should I configure pom.xml to keep A and B in my private local Maven repo cache while using Maven Central and java.net's Maven repositories? I've got two local private projects, call them A and B, but both depend on a few bug fixes in…
user314104
  • 1,528
  • 14
  • 31
0
votes
2 answers

Java read binary struct

i need to read a binary file that contains this structure: struct iqmheader { char magic[16]; // the string "INTERQUAKEMODEL\0", 0 terminated uint version; // must be version 2 uint filesize; uint flags; uint num_text, ofs_text; …
Alex Tbk
  • 2,042
  • 2
  • 20
  • 38
0
votes
1 answer

How to iterate over Javolution FastMap

Using the Javolution 6.0.0 Snaphot from February. According to this we can iterate over the FastMap, but I keep getting an java.lang.UnsupportedOperationException http://javolution.org/target/site/apidocs/javolution/util/FastMap.html My…
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
3 answers

Java OutOfMemoryError using Javolution Struct

I'm using Javolution Struct to represent a C struct in Java. However, every time I create a new item, it is allocated in the native part of the process, and increases the memory usage. Eventually, the process reaches 4GB of memory, even though the…
Al Mobix
  • 43
  • 1
  • 1
  • 4
1
2