Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindprod.compactor
Class Compactor2

    java.lang.Object
      com.mindprod.compactor.Compactor2

    public class Compactor2

extends java.lang.Object

Compacts HTML my removing excess white space.

Version:
  2.3 2008-02-15 complete rewrite, mainly to handle removing space around
- and tags.
Author:
  Roedy Green

Field Summary
`static java.lang.String` | `EMBEDDEDCOPYRIGHT` undisplayed copyright notice
`static java.lang.String` | `VERSIONSTRING` embedded version string.

Constructor Summary
`Compactor2()`

Method Summary
`static void` | `compactFile(java.io.File fileBeingProcessed, boolean quiet)` compact and tidy one file.
`static java.lang.String` | `compactString(java.lang.String big)` Remove excess whitespace from HTML represented by string.
`static void` | `main(java.lang.String[] args)` compacts HTML files.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### EMBEDDEDCOPYRIGHT

    public static final java.lang.String EMBEDDEDCOPYRIGHT

  undisplayed copyright notice

  See Also:
    Constant Field Values

### VERSIONSTRING

    public static final java.lang.String VERSIONSTRING

  embedded version string.

  See Also:
    Constant Field Values

Constructor Detail

### Compactor2

    public Compactor2()

Method Detail

### compactFile

    public static void compactFile(java.io.File fileBeingProcessed,
                                   boolean quiet)
                            throws java.io.IOException

  compact and tidy one file.

  Parameters:
    `fileBeingProcessed` - File to compact and tidy.
    `quiet` - true if want progress messages suppressed
  Throws:
    `java.io.IOException` - Suppress IntelliJ Code Analyse that wants to make this private.

### compactString

    public static java.lang.String compactString(java.lang.String big)

  Remove excess whitespace from HTML represented by string.

  Parameters:
    `big` - the String to compact.
  Returns:
    the compacted String, big itself if nothing changed.

### main

    public static void main(java.lang.String[] args)

  compacts HTML files.

  Parameters:
    `args` - names of files to process, dirs, files, -s, *.*, no wildcards.

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD