- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
7 Posted Topics
There are many ways to read properties file in java. Here explained two wayS, using 1. ResourceBundle 2. Properties Class How to use this tutorial 1. Create one directory src and put both below files (MyProp.properties and ReadPropFile.java) 2. MyProp.properties name = Binod Kumar Suman roll = 110 city = …
These below code you can use for readin text file from URL. [code]String charset = "utf-8"; URL url = new URL(your text file URL); URLConnection conn = url.openConnection(); conn.setDoOutput(true); InputStream inputStream = null; inputStream = url.openStream(); StringBuffer s = new StringBuffer(); if(charset==null"".equals(charset)){ charset="utf-8"; } String rLine = null; BufferedReader bReader …
Hi, I wrote one easy example how to parse XML file data in dynamically growing HTML table. [url]http://binodsuman.blogspot.com/2009/05/parse-xml-file-in-javascript-part-2.html[/url] Thanks, Binod Suman [url]http://binodsuman.blogspot.com[/url]
You can also compare two images using imagemagick tools. It is very simple. compare -metric AE 5001.MAIN.jpg 5002.MAIN.jpg difference.jpg if it returns value 0 means both images are same. [URL="http://binodjava.blogspot.com/2009/06/how-to-compare-two-images-check-two.html"]This[/URL] post might help you. Thanks, Binod Suman
I was searching a solution to get height and widht of an image using javascript. I got many but all those solution only worked when image present in browser cache. Finally I got one solution to get image height and width even image does not exist in browser cache. Just …
You can use this code to validate any xml file againt xsd file. [code=java] public boolean validate() throws Exception { VerifierFactory factory = new com.sun.msv.verifier.jarv.TheFactoryImpl(); Schema schema = factory.compileSchema(schemaURI); Verifier verifier = schema.newVerifier(); verifier.setErrorHandler(new ErrorHandler() { public void error(SAXParseException saxParseEx) { System.out.println("ERROR :: "); saxParseEx.printStackTrace(); } public void fatalError(SAXParseException saxParseEx) …
There is very easy java code to tranform XML data to PDF. SNIP Thanks, Binod Suman SNIP
The End.
BinodSuman