2009년 2월 25일 수요일

생각에 잠기다..

세상을 그렇게 많이 살아 오지도 않았지만..

짧은 생을 사람들은 참 어렵게 산다..문득 이런생각이 든다..

한평생 살다 갈꺼 멋지게 살다가 가자라는 사람이 있는가 반면에.. 다른 한 부류는 대충살다 간다라는 사람도 있다..

대충살다 간다...대충살다가 가는것을 원하는 사람이라면, 그것이 최선의 선택인 것인데..그것에 대한 사람들에

대한 의식에 따라 안좋게 작용하는거 같다..

난 사실 편한게 좋다.. 운동도 싫고, 귀찮은것도 싫다.. 하기 싫은것도 너무 많고. 하루종일 뒹굴고 싶고, 기타등등

하고 싶고 하기 싫은게 많은데..생각대로 다 이루어 지지가 않는다..

그냥 편하게,,편하게는 안되는것일까??

자정이 넘은 이시각까지 컴퓨터 를 붙잡고 해야 하는 것은 무엇이며,, 이렇게 해서 과연 행복할까??

잠시 회의에 빠져버렸다..

사실 공부로 성공의 여부를 따지는 것은 옳지 않다고 생각을 한다.

적어도 그사람의 성공은 나중에 나이가 들어서 얼마나 많은 즐거움을 가졌는가가 중요하다고 생각하는 나에게는...

하지만 난 지금 석사학위까지 따려고 집착하고 있다..

안타깝다..

2009년 2월 12일 목요일

Java libraries to read and write Postscript (PS) files

PostScript is a well-known document file format created by Adobe. The typical file extension for PostScript files is .ps (.eps, .epsf and .epsi are also in use). More on the file format: Adobe, Open Directory, Wikipedia, PostScript FAQ. A PostScript file format specification is available for free on Adobe's website.

Library / package License Description
iText Mozilla License Read PostScript files. Uses code from Sun's Java2D sample PostScript interpreter.
Java2D PostScript Text GPL, MPL Write PostScript files.
Java EPS Graphics Free for personal, educational and non-commercial use. Special license for commercial use. Provides a special implementation of Graphics which writes into EPS (Encapsulated PostScript) files.
PSGr ? Write PostScript documents. Provides subclass of Graphics and stores all drawing commands in a PostScript file so that the vector nature of the resulting picture is preserved.
PS Viewer LGPL Read PostScript files.
RiePS LGPL Write PostScript files.
Saffron Document Server Commercial Reads PostScript (.ps) documents and generates PDF, HTML, RTF, TIFF, and other formats. Configured as a server for concurrent document rendering.
Sun Java2D PostScript interpreter ? Read PostScript files.
ToastScript GPL Read Level 1 PostScript (.ps) documents.

Java libraries to read and write DVI document files

DVI (for device independent) is the standard output file format of the TeX typesetting package.

This page lists Java software that can read or write DVI files. Right now, only DVI-reading software seems to be available, and all packages are DVI viewers.

Note that there is a project to create a port of TeX in Java: ExTeX. An older port is JavaTeX.

Non-Java viewers for DVI files include xdvi and yap. More DVI-processing software can be found at the DVIWare category of the Open Directory.

You want me to update an entry on this page, or a add a new one? Please read these remarks first!

Library / package License Description
IDVI Free (?) Read DVI documents. Applet, source code available.
jDvi Free (?) Read DVI documents in an applet.
Multivalent browser Special license Viewer that reads DVI (and other) documents. Source code available

Java libraries to read and write Excel XLS document files

Microsoft Excel spreadsheet files typically have a file extension of .xls. The newer versions of this format are subtypes of the Microsoft OLE 2 compound document file format, just like its fellow office file formats Word .doc and PowerPoint .ppt.

If you don't want to read and write this rather complex file format directly, you might also be successful exchanging data with Excel from your Java application by reading and writing simple text files that contain rows with tab- or comma-separated values (.csv). Java libraries for these replacement formats can be found in the Java data formats section of the Open Directory.

Excel is also able to access spreadsheet data from tables in in HTML files.

Library / package License Description
Actuate Spreadsheet Engine Commercial, 30-day trial version available Write Excel (XLS) files.
ExcelAccessor ? Read and write Excel (XLS) files.
ExcelReader ? JavaWorld article on how to read Microsoft Excel (XLS) files, including code. Requires an installed Microsoft ODBC driver for Excel files, and Sun's ODBC-JDBC driver.
ExtenXLS Commercial, 30-day trial version available Read and write Microsoft Excel (XLS) files.
JACOB project LGPL Java COM bridge with examples to interface Excel.
Java Excel API LGPL Read Excel (XLS) 97, 98 and 2000 files.
Java to Excel conversion ? Write SYLK files, which Excel can import and export.
JExcel Commercial Swing component to integrate Excel via JNI.
jXLS LGPL Create Excel files using XLS templates.
POI Apache Software License 1.1 Read and write Microsoft OLE 2 compound document format files. This includes MS Office files (DOC, XLS, PPT) written with Office versions that were released after 1997.
Snowbound Commercial Read Excel files.
SoftArtisans OfficeWriter Commercial Write Word and Excel files.
Vista JDBC Commercial, 15-day trial version available JDBC driver to access MS Excel (XLS) files.
xlSQL GPL JDBC driver to access MS Excel (XLS) and CSV files.

Java libraries to read and write PowerPoint PPT document files

The application PowerPoint is presentation software and a part of Microsoft Office. Its native file format has a file extension of .ppt. This page lists Java software to read and write PPT files.

Library / package License Description
Davisor Offisor Commercial Read Powerpoint (PPT) files. Can convert them to XML. 100% Java.
POI Apache Software License 1.1 Read and write Microsoft OLE 2 compound document format files. This includes MS Office files (DOC, XLS, PPT) written with Office versions that were released after 1997.
Tonic Java PowerPoint Library Commercial, demo available Read, create and manipulate PowerPoint files. 100% Java. Also available is a free Java reader for PPT files.

Java libraries to read and write Word DOC files

Arguably the most popular file format for documents, simply because of the high market share of Microsoft Office. Unfortunately, the .doc file format changes with every new version of Word, so there is not a single Word file format but a number of them. Make sure to find out which version of Word your Java application will have to interface with.

Instead of dealing with the complicated Word DOC file format it is often sufficient to exchange RTF (Rich Text Format) files. RTF is more simple than DOC, well-documented and even supported in Java's standard runtime library since Java 1.2 (see the API documentation of the javax.swing.text.rtf package).

If you need to support .doc itself, here are some libraries for it.

Library / package License Description
SoftArtisans OfficeWriter Commercial Write Word and Excel files.
POI Apache Software License 1.1 Read and write DOC files (only very basic support right now). POI is already covered on the Excel page: POI.
Java Bean Word Processing Freeware Read and write Word 97 and 2000 files. Needs a driver that runs only under Windows.
Davisor Offisor Commercial Reads Word files and transform them to XML. Pure Java solution.
RasterMaster Commercial Read Word files.

2009년 2월 9일 월요일

POJO Vs JavaBean

1)POJO is an acronym for Plain Old Java Object, and is favoured by advocates
of the idea that the simpler the design, the better. The name is used to
emphasize that the object in question is an ordinary Java Object, not a special
object, and in particular not an Enterprise JavaBean (especially before EJB 3).
The term was coined by Martin Fowler, Rebecca Parsons and Josh MacKenzie in
September 2000.

2)A JavaBean is a POJO that is serializable, has a no-argument constructor,
and allows access to properties using getter and setter methods. An Enterprise
JavaBean is not a single class but an entire component model (again, EJB 3
reduces the complexity of Enterprise JavaBeans).