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

Java : Unable to delete files using FileUtils.deleteQuietly,ForceDelete,FileDeleteStrategy.FORCE.delete;

I use FileUtils.deleteQuietly() method to delete files after copying to some other places.But it is not deleting the file and the files are staying in the same path. File folder = new File(Marker_Source_path); File[] listOfFiles =…
0
votes
1 answer

Execution commands with input redirection operator in Java

I am trying to send a mail from Unix shell through a java program. I use Apache commons exec to do this. The command is mutt -s "Subject of mail" email@domain.com < file.txt And the Java code I use is CommandLine cmdLine =…
Ram Vibhakar
  • 255
  • 2
  • 5
  • 19
0
votes
1 answer

Java CLI : Cant parse arguments

I am trying to parse command line arguments as Options options = new Options(); options.addOption("c", "count", false, "number of message to be generated"); options.addOption("s", "size", false, "size of each messages in bytes"); …
AbtPst
  • 7,778
  • 17
  • 91
  • 172
0
votes
0 answers

Double posts using Java to move Photos and Text Files to Dropbox for IFTTT recipes

I'm using Java move a file into a dropbox folder, which if a new file or photo that gets added, will trigger an IFTTT.com recipe that will post it to twitter. I am using Apache Commons IO for the movefile method on File Utils to create a File, and…
Jayizzle
  • 532
  • 1
  • 6
  • 24
0
votes
0 answers

Looped Accelerometer Data Calculations Android SDK

I've been struggling with an app for fall detection for quite some time now. The app runs, but it will freeze up at times, and then resume 10-15 seconds after. My approach is to do integral calculations (which means I had to import a third party…
0
votes
1 answer

Jakarta HttpClient issue with size of tag

I have service witch is returning rather simple XML in body, but with very large text in "ns:responses" tag - in IE/Chrome it is approx. 40kB, but in HttpClient I am getting:
Pawel
  • 51
  • 1
  • 5
0
votes
1 answer

CSVFormat.RFC4180 ignores quoted values in .csv file

I have .csv file that has quoted values Gender,ParentIncome,IQ,ParentEncouragement,CollegePlans "Male",53900,118,"Encouraged","Plans to attend" "Female",24900,87,"Not Encouraged","Does not plan to attend" "Female",65800,93,"Not Encouraged","Does not…
newprint
  • 6,936
  • 13
  • 67
  • 109
0
votes
1 answer

DualHashBidiMap and getKey method

I have an issue with the DualHashBidiMap and getKey method. I'm using Commons Collections 4.1 The containsKey method returns true for specific key insterted, but getKey method returns null for the same key; Key Class have a SuperClass with equals…
Max
  • 25
  • 5
0
votes
1 answer

Commons IO 2.4, how control the state of FileAlterationListener and restart

We have a web app in Jboss 6.4 that has to check a Folder( new Files ), our idea was use Commons IO 2.4 with FileAlterationMonitor, like a backup we wanted to control the monitor.. if is working properly or not, For this.. we created a TimerTask to…
reizintolo
  • 429
  • 2
  • 7
  • 20
0
votes
0 answers

Using Apache IO Commons in Play 2.2

I'm trying to import Apache Commons IO 2.4 to Play Framework 2.2. I have this in my project's build.sbt libraryDependencies += "commons-io" % "commons-io" % "2.4" When I run play compile I get an error [error] impossible to get artifacts when data…
tok
  • 909
  • 1
  • 10
  • 21
0
votes
0 answers

Apache Commons CSV Parsing is returning HTML?

I am just messing around with the yahoo finance API and Commons CSV. I am having trouble outputting the value for stock symbol AAPL. For some reason I keep returning HTML. When I double check the website, it does in fact return a CSV file that…
j1nrg
  • 69
  • 7
0
votes
1 answer

Commons lang StringEscapeUtils.unescapeCsv does not remove quotes

The definition of "StringEscapeUtils.unescapeCsv" says that it removes double quotes, but in my case, it does nothing. String value = StringEscapeUtils.unescapeCsv(a[1] ); (Value of a1 = "\"Call Us\"" and the resulting value is "\"Call us\"") See…
user1122069
  • 1,767
  • 1
  • 24
  • 52
0
votes
1 answer

how to use org.apache.commons.math3.distribution

I have the following code, but when I run, I don't even get a number and I'm not sure why. do I have to use a different constructor? I tried but one of the arguments in a different constructor is a random number generator, and won't let me put in…
Logan
  • 51
  • 10
0
votes
2 answers

Apache commons CLI not parsing as expected?

public static void main(String[] args) { Options options = new Options(); Option hostOption = Option.builder("h") .longOpt("host") .required(false) .build(); Option portOption = Option.builder("p") …
user1870400
  • 6,028
  • 13
  • 54
  • 115
0
votes
1 answer

Email received sent via webmail but not Javamail

I'm trying to send emails via Javamail to a corporate account. My Java test app works fine when I send message to gmail and my personal email. I can also successfully send to the corporate account via my email hosting webmail client. I've read…
glez
  • 1,170
  • 3
  • 16
  • 42
1 2 3
99
100