public class JarIndexer
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
JarIndexer() |
Modifier and Type | Method and Description |
---|---|
private static void |
copy(java.io.File dest,
java.io.File source) |
private static void |
copy(java.io.InputStream in,
java.io.OutputStream out) |
static Result |
createJarIndex(java.io.File jarFile,
Indexer indexer,
boolean modify,
boolean newJar,
boolean verbose)
Indexes a jar file and saves the result.
|
static Result |
createJarIndex(java.io.File jarFile,
Indexer indexer,
boolean modify,
boolean newJar,
boolean verbose,
java.io.PrintStream infoStream,
java.io.PrintStream errStream)
Indexes a jar file and saves the result.
|
static Result |
createJarIndex(java.io.File jarFile,
Indexer indexer,
java.io.File outputFile,
boolean modify,
boolean newJar,
boolean verbose)
Indexes a jar file and saves the result.
|
static Result |
createJarIndex(java.io.File jarFile,
Indexer indexer,
java.io.File outputFile,
boolean modify,
boolean newJar,
boolean verbose,
java.io.PrintStream infoStream,
java.io.PrintStream errStream)
Indexes a jar file and saves the result.
|
private static java.io.File |
getIndexFile(java.io.File jarFile,
boolean newJar) |
private static void |
printIndexEntryInfo(ClassInfo info,
java.io.PrintStream infoStream) |
private static void |
safeClose(java.io.Closeable close) |
private static void |
safeClose(java.util.jar.JarFile close) |
private static java.io.File getIndexFile(java.io.File jarFile, boolean newJar)
public static Result createJarIndex(java.io.File jarFile, Indexer indexer, boolean modify, boolean newJar, boolean verbose) throws java.io.IOException
.idx
suffix.jarFile
- The file to indexindexer
- The indexer to usemodify
- If the original jar should be modifiednewJar
- If the new jar should be createdverbose
- If we should print what we are doing to standard outjava.io.IOException
- for any I/o errorpublic static Result createJarIndex(java.io.File jarFile, Indexer indexer, java.io.File outputFile, boolean modify, boolean newJar, boolean verbose) throws java.io.IOException
.idx
suffix.jarFile
- The file to indexindexer
- The indexer to useoutputFile
- The index file to write tomodify
- If the original jar should be modifiednewJar
- If the new jar should be createdverbose
- If we should print what we are doing to standard outjava.io.IOException
- for any I/o errorpublic static Result createJarIndex(java.io.File jarFile, Indexer indexer, boolean modify, boolean newJar, boolean verbose, java.io.PrintStream infoStream, java.io.PrintStream errStream) throws java.io.IOException
.idx
suffix.jarFile
- The file to indexindexer
- The indexer to usemodify
- If the original jar should be modifiednewJar
- If the new jar should be createdverbose
- If we should print what we are doing to the specified info streaminfoStream
- A print stream which will record verbose info, may be nullerrStream
- A print stream to print errors, must not be nulljava.io.IOException
- for any I/o errorpublic static Result createJarIndex(java.io.File jarFile, Indexer indexer, java.io.File outputFile, boolean modify, boolean newJar, boolean verbose, java.io.PrintStream infoStream, java.io.PrintStream errStream) throws java.io.IOException
.idx
suffix.jarFile
- The file to indexindexer
- The indexer to useoutputFile
- The index file to write tomodify
- If the original jar should be modifiednewJar
- If the new jar should be createdverbose
- If we should print what we are doing to the specified info streaminfoStream
- A print stream which will record verbose info, may be null 1errStream
- A print stream to print errors, must not be nulljava.io.IOException
- for any I/o errorprivate static void copy(java.io.File dest, java.io.File source) throws java.io.IOException
java.io.IOException
private static void printIndexEntryInfo(ClassInfo info, java.io.PrintStream infoStream)
private static void copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
private static void safeClose(java.util.jar.JarFile close)
private static void safeClose(java.io.Closeable close)