Report Format JAVA1
Report Format JAVA1
BELAGAVI – 590018,
ON
“FILE CONVERSION”
Submitted by:
VANDANA GM
1VK21CS086
CERTIFICATE
This is to certify that the Internship titled “FILE CONVERSION” carried out by
Ms. Vandana GM, a bonifide student of Vivekananda institute of technology, in
partial fulfillment of the award of Bachelor of Engineering. In COMPUTER
SCIENCE under Visvesvaraya Technological University, Belagavi, during the
year 2022-2023. It is certified that all correction/suggestions indicated have been
incorporated in the report.
The project report has been approved as it satisfies the academic requirements in
report of Internship prescribed for the course
DDECLARATION
Date : 17/11/2022
Place : Bangalore
USN : 1VK21CS086
NAME : VANDANA GM
MAIL ID : [email protected]
Varcons Technologies Pvt Ltd
Varcons Technologies Pvt Ltd
ACKNOWLEDGEMENT
While I was making this project, a lot of information that I found helped me in
chapter and I am glad that I was able to complete this project and was able to
understand many things.
It gave me an immense pleasure while doing this project because it was not just
a project but, a source to learn not just about chapter but also, I inculcated many
qualities like responsibility, punctuality, confidence and what not.
The journey of making this project was so nice and in all this my teachers who
supported me all the time, cleared my doubts and the parents support also
played a big role and my friends too helped me. I thank to all of them and wish
that they keep supporting me like this.
Doing work on time is something everyone needs to learn and through this
project I have improved my timing and also it made my thinking skills better.
A project is a bridge between theoretical and practical learning and with this
thinking I worked on the project and made it successful due to timely support
and efforts of all who helped me.
Once again thank you Sir/Ma'am to give me this project and to make me learn
so many things. I have no more valuable words to express my thanks, but my
heart is still full of favor received from every person.
Varcons Technologies Pvt Ltd
Consultancy - We are here to provide you with expert advice on your design
and development requirement.
INDEX
1 01
Brief overview on project
2 01
Advantages and challenges while
completing project
3 02
Software and hardware
requiement for project
5 07
Conclusion
6 Bibliography 08-09
Project Name
CONVERSION
Advantages:
Challenges:
• Inadequate skills
• Time Management (To create TO - Do List of the day )
PAGE NO:1
Project Name
• Operating System
• Java SDK or JRE 1.6 or higher
• Java Servlet Container (Free Servlet Container available)
• Supported Database and library that supports the database
connection with Java.
PAGE NO:02
Project Name
Project Goals: The ultimate goal of our project is to convert the files from
JSON to CSV or from CSV to JSON using JAVA.
package testPackage;
import java.util.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.dataformat.csv.*;
import java.io.*;
import java.text.ParseException;
import org.json.simple.*;
import org.json.simple.parser.JSONParser;
import com.opencsv.CSVWriter;
class fileConversion{
public static void main(String args[]) throws ParseException, org.json.simple.parser.ParseException, IOException {
Scanner sc = new Scanner(System.in);
System.out.println("Enter:\n1:JSON to CSV convertion\n2:CSV to JSON convertion");
int ch = Integer.parseInt(sc.nextLine());
switch(ch) {
case 1:
JSONParser parser = new JSONParser();
System.out.println("Enter JSON file path: ");
String JSONFilePath = (String)sc.nextLine();
System.out.println("Enter path where you want to save your csv file with filename:\n(eg - 'c:\\new
folder\\sample.csv'): ");
String CSVfilePath = (String)sc.nextLine();
File file = new File(CSVfilePath);
FileWriter outputfile = new FileWriter(file);
CSVWriter writer = new CSVWriter(outputfile);
String[] header = { "album", "year", "US_peak_chart_post" };
writer.writeNext(header);
try {
JSONArray a = (JSONArray) parser.parse(new FileReader(JSONFilePath));
for(Object o:a) {
JSONObject obj = (JSONObject)o;
String year = (String) String.valueOf(obj.get("year"));
String US_peak_chart_post = (String) String.valueOf(obj.get("US_peak_chart_post"));
String album = (String) obj.get("album");
String[] data = {album,year,US_peak_chart_post};
writer.writeNext(data);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Json to csv file converted successfully...");
writer.close();
break;
case 2:
System.out.println("Enter CSV file path: ");
System.out.println("Enter path where you want to save your json file with filename:\n(eg -
'c:\\new folder\\sample.json'): ");
String JsonFileSavePath = (String)sc.nextLine();
PAGE NO:05
Project Name
PAGE NO:06
Project Name
CONCLUSION:
Here, we have come to the end of the project on the topic "File conversion".
It was a wonderful and learning experience on this project. The joy of working
and the thrill involved while tackling the various problems and challenges. We
learnt many new things about the File conversion and for us while working on this
project.
Ans if we Ahad a chance to the upon this same coursework again using the team,
we are sure that everyone in the group would not change our overall approach.
We certainly would not have as many problems to deal with as all the mistakes
that we have made in this particular project have given us the necessary
experience
to improve on our team skills. Every member has realized their strengths and
weaknesses and would work to exploit each other's strengths and hide each other's
weaknesses.
This project has developed by thinking skills and more interest on this
subject.
A very special thanks to TIE and Varco’s Technologies Pvt Ltd for setting
such target for us. we enjoyed every bit of work, we put in to this project.
We do hope that our project will be interesting and maybe even knowledgeable.
PAGE NO:07
Project Name
BIBLIOGRAPHY:
• “Core Java™, Volume I--Fundamentals (8th Edition) “, by Cay S. Horstman, Prentice
Hall; 8
edition (April 18, 2008).
• “Head First Servlets and JSP: Passing the Sun Certified Web Component
Developer Exam “, by Bryan Basham (Author), Kathy Sierra (Author), Bert Bates
(Author), O'Reilly Media; Second Edition (April 1, 2008).
• “Head First Design Patterns”, Elisabeth Freeman (Author), Eric Freeman (Author),
Bert Bates (Author), Kathy Sierra (Author), Elisabeth Robson (Author), O'Reilly
Media; 1 edition (November 1, 2004)
• “EJB 3 in Action”, Debut Panda (Author), Reza Rahman (Author), Derek Lane
(Author),
Manning Publications; 1 edition (April 16, 2007).
PAGE NO:08
Project Name
• “Art of Java Web Development: Struts, Tapestry, Commons, Velocity, JUnit, Axis,
Cocoon,
Internet Beans, Webwork”, Neal Ford (Author), Manning Publications (November 1,
2003).
• “Struts 2 in Action”, Don Brown (Author), Chad Michael Davis (Author), Scott Stanwick
(Author), Manning Publications; 1 edition (May 1, 2008).
• “Hibernate in Action (In Action series)”, Christian Bauer (Author), Gavin King
(Author), Manning Publications (August 1, 2004) “Web Services Essentials
(O'Reilly XML)”, Ethan Ceramic (Author), O'Reilly Media (February 2002).
• Java Black Book, Steve Holzer (Author), Steven Holzer (Author), Para glyph Press;
Second Edition (July 1, 2002)
PAGE NO:09