Questions tagged [apache-commons]

The Apache Commons project provides reusable, open source Java software components. Consider using a component specific tag (such as apache-commons-lang) rather than this general tag.

The Apache Commons is a project of the Apache Software Foundation and includes many components previously found in the retired Apache Jakarta Project. Apache Commons projects are gathered into three groups:

  • Apache Commons Proper is the group of Apache Commons components that are actively being supported by the Apache Commons community.

  • Apache Commons Sandbox is the group of proposed Apache Commons components that are in the process of building a community of users and developers. The sandbox serves the purpose of vetting proposed components for inclusion into Apache Commons. Once the whole Apache Commons community feels a sandbox component has gained a large enough following, the sandbox component can graduate to Apache Commons Proper

  • Apache Commons Dormant is a group of Apache Commons Components that are no longer in active development. There is little community support for these components and most likely will not be released.

For more information, visit the Apache Commons website to learn about the individual components as well as learn how to contribute.

1814 questions
0
votes
1 answer

Using Apache Commons Digester with JSON

I am writing a class that extends a class that uses Digester to parse an XML response from an API (Example existing class, code snipper below). After receiving the response, the code creates an object and adds specific methods on that. Code snippet…
Tony Laidig
  • 1,048
  • 2
  • 11
  • 33
0
votes
2 answers

How to calculate last IP address from CIDR in IPV6

I am trying to calculate the last IP address from CIDR using Apache commons-net for IPV4 SubnetUtils su = new SubnetUtils(cidr); SubnetInfo si = su.getInfo(); si.getHighAddress(); It won't work for IPV6, can anybody suggest some library to solve…
karthik
  • 11
  • 1
0
votes
1 answer

Auto-close for streams in IOUtils methods

Apache commons-io library is almost a de-facto way for IO operations in java. What really bothers me is that it does not provide methods for automatically stream closing after io operations. Desired workflow: IOUtils.write(myBytes, new…
AdamSkywalker
  • 11,408
  • 3
  • 38
  • 76
0
votes
1 answer

What are the differences between apache-commons serialization and JDK serialization?

JDK's object serialization mechanism has some flaws(poor performance, huge bytes ). Is Apache's SerializationUtils better than JDK's ?
Neo
  • 2,196
  • 5
  • 32
  • 58
0
votes
1 answer

In maven it's "org.apache.commons.collections:commons-collections" the same as "commons-collections:commons-collections"?

I just saw on my pom files that there are two different group id's for Apache commons-collections: commons-collections commons-collections And this one:
j2gl
  • 706
  • 3
  • 20
  • 28
0
votes
1 answer

java.math.BigDecimal.scale() equivalent for double

I've got a matrix of values like the one below that I need to scale. I've been looking around for an inbuilt function if there is one that could do this for me. I haven't found one & so have ended up writing code to do the scaling using the below…
usert4jju7
  • 1,653
  • 3
  • 27
  • 59
0
votes
0 answers

Selenium-Grid,I want to reduce the browser start-time

Question description: The steps are as following: 1.I use selenium-server-standalone-2.49.1.jar to start hub and node. java -jar selenium-server-standalone-2.49.1.jar -role hub -maxSession 40 java -jar selenium-server-standalone-2.49.1.jar -role…
0
votes
0 answers

Exception during uploading multiple files using servlet & Apache Commons

I am trying to create a multi-file upload servlet. I have 1 jsp page which allows user to select multiple files for upload. On clicking the "Upload" button "UploadServlet" is called which is using "Apache Commons" library for uploading the files on…
Jahar tyagi
  • 91
  • 13
0
votes
1 answer

How to make compression more faster in java to archiving file

I am working on java application, where I have to manage the files into tar/zip format. So I am creating tar/zip from csv file. Now I am looking for the way, by which I can do it faster. Because I have to run this for millions of files. I am using…
Tej Kiran
  • 2,218
  • 5
  • 21
  • 42
0
votes
1 answer

is there any aalternate for ValidatorResourcesInitializer?

I have a code to check email validation which is using commons-validator-1.0.2 version, now I want to upgrade the version of commons-validator to 1.4.1 or higher, when I upgrade the jar I am seeing ValidatorResourcesInitializer class is deprecated,…
user2868994
0
votes
1 answer

Least squares Levenburg Marquardt with Apache commons

I'm using the non linear least squares Levenburg Marquardt algorithm in java to fit a number of exponential curves (A+Bexp(Cx)). Although the data is quite clean and has a good approximation to the model the algorithm is not able to model the…
alto125
  • 19
  • 6
0
votes
1 answer

Bean class is not specified when using DefaultConfigurationBuilder

I have used DefaultConfigurationBuilder try to integrated my properties and xml file as below code: DefaultConfigurationBuilder dcfb = new DefaultConfigurationBuilder(); File file = new…
Bruce
  • 647
  • 2
  • 12
  • 30
0
votes
1 answer

Why is my InputStream not working in Android?

I'm writing an image file uploader for android for my favorite image gallery software and it uses FTP. I've started using Apache-Commons Net FTP as my ftp library based on past stack overflow questions. Like so: FTPClient ftp = new…
MattK
  • 1,521
  • 1
  • 12
  • 25
0
votes
2 answers

In the following Java code, what is the advantage of using the Apache FileUtils class?

I came across the following Java code snippet ( source ), that is used to read the last line in a file. It uses two Apache libraries - ReversedLinesFileReader and FileUtils. Here it is : ReversedLinesFileReader reader = new…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
0
votes
1 answer

android studio fails to launch app with external libs

I want to use ftp facilities in my android application, so I tried to add apache-commons-net:3.4 library. Build is done successfully but it fails when I want to run or debug the application. So I tried to use ivy-2-4-0 library and also Chilkat…
fralbo
  • 2,534
  • 4
  • 41
  • 73
1 2 3
99
100