This is a sample page show you how to comiple Java code. This is the next sentence.
This is a "test1" and this is a test '2'.
*test.php
public void updateCustomerName(String customerName)
{
this.customerName = customerName;
}
*test2.php
public static void convert(String inPath, String outPath, File infile, File outfile) throws Exception
{
TiffReader reader = null;
// reading tiff file
reader = new TiffReader(inPath);
reader.startImageRead();
// number of pages of reading file
int numPages = reader.getNumberImages();
System.out.println(' numPages:' + numPages);
// writing
TiffWriter writer = new TiffWriter();
// get the template
String sTemplate = 'PrintTemplate.tif';
if( numPages > 0 )
{
if( reader.getWidth() > reader.getHeight() )
{
sTemplate = 'LandscapeTemplate.tif';
}
}
writer.setTemplateTiff(sTemplate);
writer.startTiff( outfile );
IIOMetadata meta = null;
// go through each page of tiff file
for( int i = 0; i < numPages; i++ )
{
writer.addPage(reader.readImageData(i), meta); // using TiffReader
}
writer.completeTiff();
reader.close();
}