com.sun.jini.tool
Class JarWrapper.PreferredListWriter.DirNode

java.lang.Object
  extended by com.sun.jini.tool.JarWrapper.PreferredListWriter.DirNode
Enclosing class:
JarWrapper.PreferredListWriter

private class JarWrapper.PreferredListWriter.DirNode
extends Object

Represents JAR-internal directory.


Field Summary
(package private)  List files
           
(package private)  String path
           
(package private)  int prefPackageLen
           
(package private)  int prefSubtreeLen
           
(package private)  List subdirs
           
(package private)  int unprefPackageLen
           
(package private)  int unprefSubtreeLen
           
 
Constructor Summary
JarWrapper.PreferredListWriter.DirNode(String path)
           
 
Method Summary
(package private)  void compileList()
          Computes minimal list length using dynamic programming.
(package private)  void writeDir(Writer w, boolean contextPref)
          Writes preferred list entries (if any) for this directory, which inherits the given preferred value as its default.
(package private)  void writeFiles(Writer w, boolean contextPref)
          Writes preferred list entries (if any) for files in this directory, which has the given preferred value as its default.
(package private)  void writeList(Writer w)
          Writes preferred list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

final String path

subdirs

final List subdirs

files

final List files

prefSubtreeLen

int prefSubtreeLen

prefPackageLen

int prefPackageLen

unprefSubtreeLen

int unprefSubtreeLen

unprefPackageLen

int unprefPackageLen
Constructor Detail

JarWrapper.PreferredListWriter.DirNode

JarWrapper.PreferredListWriter.DirNode(String path)
Method Detail

compileList

void compileList()
Computes minimal list length using dynamic programming.


writeList

void writeList(Writer w)
         throws IOException
Writes preferred list. This method is only called on the root node.

Throws:
IOException

writeDir

void writeDir(Writer w,
              boolean contextPref)
        throws IOException
Writes preferred list entries (if any) for this directory, which inherits the given preferred value as its default.

Throws:
IOException

writeFiles

void writeFiles(Writer w,
                boolean contextPref)
          throws IOException
Writes preferred list entries (if any) for files in this directory, which has the given preferred value as its default.

Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.