Language Processing
v2.0

wcs
Class JarProcessor

Object
  extended by JarProcessor
All Implemented Interfaces:
Job.Processor

public class JarProcessor
extends Object
implements Job.Processor

collate the applet archive from applet.jar, the temporary class file tree, and from each jar element at level 2 and each nested jar element with sink='applet' or sink='jnlp' at level 2 on the classpath.

Version:
2.1

Constructor Summary
JarProcessor()
           
 
Method Summary
protected  void copy(JarOutputStream out, JarEntry entry, InputStream in)
          append a byte stream to an archive.
protected  void jar(JarOutputStream out, String dirName, File file)
          recursively archive directory and/or files.
protected  void jar(Job job, JarOutputStream out, File file)
          copy an archive, but for META-INF.
 void process(Job job)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarProcessor

public JarProcessor()
Method Detail

process

public void process(Job job)
             throws IOException
Specified by:
process in interface Job.Processor
Throws:
IOException

jar

protected void jar(Job job,
                   JarOutputStream out,
                   File file)
            throws IOException
copy an archive, but for META-INF.

Parameters:
file - to be copied.
Throws:
IOException

copy

protected void copy(JarOutputStream out,
                    JarEntry entry,
                    InputStream in)
             throws IOException
append a byte stream to an archive.

Throws:
IOException

jar

protected void jar(JarOutputStream out,
                   String dirName,
                   File file)
            throws IOException
recursively archive directory and/or files.

Parameters:
dirName - path prefix, must include trailing separator.
file - to be archived; not null.
Throws:
IOException


(c) 2008 Axel T. Schreiner