Questions tagged [flatpack]

Flatpack is a Java library to help parsing "flat" files.

The library can parse CSV, Excel CSV, Tab, Pipe delimiters, and others.

This library is also used in apache-camel as a helper for parsing such files.

11 questions
16
votes
2 answers

What are conceptual and practical differences between containers (i.e. docker) and encapsulated packages (i.e. flatpack, snap)?

I read often that both concepts are quite different, but I could not find a good explanation about where the differences lie. Both bundle dependencies and restrict talking to the outside world. When should I pack my app in a container for…
Boffin
  • 1,197
  • 2
  • 11
  • 18
3
votes
1 answer

using apache camel, smooks and flatpack

I am writing a route using camel and smooks, with the producer as a JPA repository that produces a List of JPA Objects, which I need to send to an sftp server as a fixed width file. Here is what I think is required for this to occur The…
Sam Hammamy
  • 10,819
  • 10
  • 56
  • 94
3
votes
2 answers

Mule - how to access files in src/main/resources in Java class when running in Studio and Standalone?

I have a Mule CE application that is using a Java component to transform a CSV file to XML. My Java class needs to access a flatpack XML file called map.xml - I have placed this in src/main/resources. My Java class is in src/main/java. I'm currently…
danw
  • 1,608
  • 4
  • 29
  • 48
2
votes
1 answer

Build flatpak package

I'm working to get my application in a flatpak package. My application (https://sourceforge.net/p/audiocuesheet) is a mono build which uses gtk-sharp2. I'm really new to flatpak and started to build a manifest like this: { "app-id":…
Sven
  • 447
  • 1
  • 6
  • 22
2
votes
1 answer

Camel large CSV file processing Issue

I am trying to process a large CSV file of approximately 1 million records and after reading the rows (line/line or in chunks), I need to push this to camel-flatpack to create a map with field names and their values. My requirement is to feed all…
1
vote
0 answers

flat pack java for multiline records or multi line fixed width files

I am using net.sf.flatpack and new to fixed length file parsing. Does flatpack support mutlilined files or files with different fixed length records? for example: myfile AAA000 SOMETHING 0001 - record1 AAAA SOMETHINGELSE 0001 AAAA - sub-record of…
Maxwell Wang
  • 41
  • 1
  • 3
1
vote
2 answers

How to parse large files using flatpack

I need to parse files that may be quite large, possibly 100s of megabytes and millions of lines. I have been trying to do this using FlatPack. I would think the way to do this would be to use the buffered parsers and the new stream methods. But,…
user1723105
  • 121
  • 9
0
votes
0 answers

File Parsing and field validations using Apache camel flatpack

Can we parse as well as perform field validation(i.e. Datatype, Date format, Masking related) using Flatpack? Currently I am using below xml to process fixed width file.
Data_Geek
  • 11
  • 4
0
votes
3 answers

Reading Un-delimited text file in java via flatpack

I want to read data from text file in java, but text file doesn't contain any delimiter like space or comma after some text. Some guy told me that its possible via flatpack. So how can I read text and parse it as delimited and stored them. Eg of…
Dazel Mann
  • 73
  • 1
  • 4
0
votes
1 answer

I can not debug ASP.NET in Monodevelop - Missing extension

Come on, I'll try to be objective. I installed the monodevelop via flatpack (I've tried the Stable versions 6.3 and Alpha Preview 8 - 7.0) I have 3 problems, but only 1 of them is serious, I'll start with the serious one, which I want to solve: I…
Paulo Amf
  • 360
  • 3
  • 14
0
votes
1 answer

Java - script to convert CSV to XML isn't splitting by row

I'm extremely new to Java and have been following this tutorial to convert a CSV file to XML in Mule ESB, using a Java class that makes use of Flatpack. Here is the input file I'm using: Item1|Item2|Item3|Item4 Item5|Item6|Item7|Item8 And here is…
danw
  • 1,608
  • 4
  • 29
  • 48