Hodeplagg til besvær
Det har vært mye diskusjon nasjonalt, så vel som regionalt (Vil forby niqab – Gjengangeren 10.02.2012) rundt bruken av hodeplagg...
Les merCreate Array of unique values from another Array
This code snippet show you how to create an array of unique numbers from another array of numbers. The example is taken from the comment...
Les merGet attributes of element during SAX parsing
This example show you how to get the attributes of elements in an XML file using the SAX parser. package org.brudvik.example.xml; import...
Les merBuild Object from XML file using SAX
This example will show you how to parse an XML file using SAX parser and build an object graph from the parsed XML. We will read the...
Les merHandle error when parsing an XML file using SAX
The ErrorHandler interface implemented by the org.xml.sax.helpers.DefaultHandler class provides some methods for error handling mechanism...
Les merParse an XML file using SAX
This example show you how to read / parse an xml file using the SAX (Simple API for XML) parser. In the main class (SAXDemo) we create the...
Les merCreate File Object from URL
The code snippet below use the FileUtils.toFile(URL url) method that can be found in the commons-io library to convert a URL into a File....
Les merDefine a font for text Object in iText
We can set font style for text object such as Chunk, Phrase, Paragraph, etc using the com.itextpdf.text.Font class. We can define the font...
Les merCreate an underlined or striked through chunk in iText
You can use the Chunk‘s setUnderline(float thickness, float yPosition) method to add underline or strike through to a chunk. A...
Les merCreate super / subscript in iText
The following example you’ll see how to create a superscript and subscript text in the pdf document using iText. We can use the...
Les mer
Siste kommentarer