com.mindprod.entities
Class Flatten

java.lang.Object
  extended by com.mindprod.entities.DeEntifyStrings
      extended by com.mindprod.entities.Flatten

public final class Flatten
extends DeEntifyStrings

Converts HTML entities back to UTF-8 characters, and strips out HTML tags.

Since:
2011-02-10
Version:
1.0 2011-02-10 initial version
Author:
Roedy Green, Canadian Mind Products
See Also:
DeEntify, DeEntifyStrings, Entify, EntifyStrings, Flatten

Field Summary
static java.lang.String EMBEDDED_COPYRIGHT
          undisplayed copyright notice.
static java.lang.String VERSION_STRING
          embedded version string.
 
Fields inherited from class com.mindprod.entities.DeEntifyStrings
LONGEST_ENTITY, SHORTEST_ENTITY, UNICODE_NBSP_160_0x0a
 
Method Summary
static void flattenFile(java.io.File fileBeingProcessed, int detail)
          fix entities in one file.
static void main(java.lang.String[] args)
          Converts HTML entities back to UTF-8 characters, and strips out HTML tags.
 
Methods inherited from class com.mindprod.entities.DeEntifyStrings
bareHTMLEntityToChar, deEntifyHTML, deEntifyXML, flattenHTML, flattenXML, possBareHTMLEntityWithSemicolonToChar, possEntityToChar, stripHTMLTags, stripXMLTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMBEDDED_COPYRIGHT

public static final java.lang.String EMBEDDED_COPYRIGHT
undisplayed copyright notice.

See Also:
Constant Field Values

VERSION_STRING

public static final java.lang.String VERSION_STRING
embedded version string.

See Also:
Constant Field Values
Method Detail

flattenFile

public static void flattenFile(java.io.File fileBeingProcessed,
                               int detail)
                        throws java.io.IOException
fix entities in one file.

Parameters:
fileBeingProcessed - the file currently being processed.
detail - 0=out output at all, 1=just files changed, 2=all files.
Throws:
java.io.IOException - if problem reading/writing file.

main

public static void main(java.lang.String[] args)
Converts HTML entities back to UTF-8 characters, and strips out HTML tags.

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