
Tag archives for library
Hi,
Here, a simple example using the Samba Java CIFS Client Library. JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java. CIFS is the standard file sharing protocol on the Microsoft Windows platform (e.g. Map Network Drive ...). This client is used extensively in production on large Intranets.
Some resources:
https://jcifs.samba.org/
http://blog.icodejava.com/875/java-tutorial-using-jcifs-to-copy-files-to-shared-network-drive-using-username-and-password/
Best regards,
Huseyin ...more»
Hi,
Here, a simple java example using the Apache Commons Configuration library. The Apache Commons Configuration software library provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources.Some resources:https://commons.apache.org/proper/commons-configuration/https://commons.apache.org/proper/commons-configuration/userguide/quick_start.htmlA simple file properties myfile.properties:
We need the librairies commons-configuration-1.5.jar and commons-collections-3.2.jar:
The outputs are:
Others solutions
An other solution without Apache would be the use of Java ...more»
Hi,
Here a very useful library H2, the Java SQL database http://www.h2database.com/html/main.html.
The main features of H2 are:
Very fast, open source, JDBC API
Embedded and server modes; in-memory databases
Browser based Console application
Small footprint: around 1.5 MB jar file size
Features:
Pure Java
Memory Mode
Encrypted Database
ODBC Driver
Fulltext Search
Multi Version Concurrency
Examples:
http://www.javatips.net/blog/h2-database-example
https://www.mkyong.com/spring/spring-embedded-database-examples/
Examples with the h2-1.4.192.jar and JDK 1.70_72
H2FileDatabaseExample
H2MemoryDatabaseExample
H2CsvMemoryDatabaseExample
people.csv
id,name,surname
1,Anju,Johnson
2,Sonia,Paulson
3,Asha,Huseyinson
peopleWritten.csv
"ID","NAME","SURNAME"
"1","Anju","Johnson"
"2","Sonia","Paulson"
"3","Asha","Huseyinson"
"12","Huseyin","OZVEREN"
H2CsvMemoryNoDatabaseExample
people3.csv
"id","name","surname"
"13","Huseyin13","OZVEREN13"
"14","Huseyin14","OZVEREN14"
That's all!!!
Huseyin OZVEREN ...more»
Hi,
Here are some libraries to manipulate CSV files:
Apache Commons CSV : https://commons.apache.org/proper/commons-csv/ : Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format.
opencsv : http://opencsv.sourceforge.net/ : Opencsv is a very simple csv (comma-separated values) parser library for Java
That's all!!!
Huseyin OZVEREN ...more»
