Android
java.util.jar
public static interface

java.util.jar.Pack200.Packer

java.util.jar.Pack200.Packer

interface of Packer

Summary

Constants

      Value  
String  CLASS_ATTRIBUTE_PFX  the format of a class attribute name   "pack.class.attribute." 
String  CODE_ATTRIBUTE_PFX  the format of a code attribute name   "pack.code.attribute." 
String  DEFLATE_HINT  the deflation hint to set in the output archive   "pack.deflate.hint" 
String  EFFORT  the indicated amount of effort to use in compressing the archive.  "pack.effort" 
String  ERROR  a String of error   "error" 
String  FALSE  a String of false   "false" 
String  FIELD_ATTRIBUTE_PFX  the format of a field attribute name   "pack.field.attribute." 
String  KEEP  a String of keep   "keep" 
String  KEEP_FILE_ORDER  decide if all elements shall transmit in their original order   "pack.keep.file.order" 
String  LATEST  a String of latest   "latest" 
String  METHOD_ATTRIBUTE_PFX  the format of a method attribute name   "pack.method.attribute." 
String  MODIFICATION_TIME  Packer shall attempt to determine the latest modification time if this is set to LASTEST   "pack.modification.time" 
String  PASS  a String of pass   "pass" 
String  PASS_FILE_PFX  the file that will not be compressed.  "pack.pass.file." 
String  PROGRESS  packer progress as a percentage   "pack.progress" 
String  SEGMENT_LIMIT  The number of bytes of each archive segment.  "pack.segment.limit" 
String  STRIP  a String of strip   "strip" 
String  TRUE  a String of true   "true" 
String  UNKNOWN_ATTRIBUTE  the action to take if an unknown attribute is encountered.  "pack.unknown.attribute" 

Public Methods

          void  pack(JarInputStream in, OutputStream out)
Pack jarStream with pack arithmetic
          void  pack(JarFile in, OutputStream out)
Pack jarfile with pack arithmetic
          SortedMap<StringString properties()

Details

Constants

public static final String CLASS_ATTRIBUTE_PFX

the format of a class attribute name
Constant Value: "pack.class.attribute."

public static final String CODE_ATTRIBUTE_PFX

the format of a code attribute name
Constant Value: "pack.code.attribute."

public static final String DEFLATE_HINT

the deflation hint to set in the output archive
Constant Value: "pack.deflate.hint"

public static final String EFFORT

the indicated amount of effort to use in compressing the archive.
Constant Value: "pack.effort"

public static final String ERROR

a String of error
Constant Value: "error"

public static final String FALSE

a String of false
Constant Value: "false"

public static final String FIELD_ATTRIBUTE_PFX

the format of a field attribute name
Constant Value: "pack.field.attribute."

public static final String KEEP

a String of keep
Constant Value: "keep"

public static final String KEEP_FILE_ORDER

decide if all elements shall transmit in their original order
Constant Value: "pack.keep.file.order"

public static final String LATEST

a String of latest
Constant Value: "latest"

public static final String METHOD_ATTRIBUTE_PFX

the format of a method attribute name
Constant Value: "pack.method.attribute."

public static final String MODIFICATION_TIME

Packer shall attempt to determine the latest modification time if this is set to LASTEST
Constant Value: "pack.modification.time"

public static final String PASS

a String of pass
Constant Value: "pass"

public static final String PASS_FILE_PFX

the file that will not be compressed.
Constant Value: "pack.pass.file."

public static final String PROGRESS

packer progress as a percentage
Constant Value: "pack.progress"

public static final String SEGMENT_LIMIT

The number of bytes of each archive segment.
Constant Value: "pack.segment.limit"

public static final String STRIP

a String of strip
Constant Value: "strip"

public static final String TRUE

a String of true
Constant Value: "true"

public static final String UNKNOWN_ATTRIBUTE

the action to take if an unknown attribute is encountered.
Constant Value: "pack.unknown.attribute"

Public Methods

public void pack(JarInputStream in, OutputStream out)

Pack jarStream with pack arithmetic

Parameters

in stream of uncompact jar data
out stream of compact data

Throws

IOException if I/O exception occurs

public void pack(JarFile in, OutputStream out)

Pack jarfile with pack arithmetic

Parameters

in jarfile to be compact
out stream of compact data

Throws

IOException if I/O exception occurs

public SortedMap<StringString> properties()

Returns

  • the properties of packer
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56