public class CleaningProcessor extends Object
Example usage:
String result = Processor.process("This is ***TXTMARK***");
| Modifier and Type | Method and Description |
|---|---|
static String |
process(File file)
Transforms an input file into HTML using the default Configuration.
|
static String |
process(File file,
boolean safeMode)
Transforms an input file into HTML.
|
static String |
process(File file,
Configuration configuration)
Transforms an input file into HTML using the given Configuration.
|
static String |
process(File file,
Decorator decorator)
Transforms an input file into HTML.
|
static String |
process(File file,
Decorator decorator,
boolean safeMode)
Transforms an input file into HTML.
|
static String |
process(File file,
String encoding)
Transforms an input file into HTML.
|
static String |
process(File file,
String encoding,
boolean safeMode)
Transforms an input file into HTML.
|
static String |
process(File file,
String encoding,
Decorator decorator)
Transforms an input file into HTML.
|
static String |
process(File file,
String encoding,
Decorator decorator,
boolean safeMode)
Transforms an input file into HTML.
|
static String |
process(InputStream input)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
Configuration configuration)
Transforms an input stream into HTML using the given Configuration.
|
static String |
process(InputStream input,
Decorator decorator)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
Decorator decorator,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
String encoding)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
String encoding,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
String encoding,
Decorator decorator)
Transforms an input stream into HTML.
|
static String |
process(InputStream input,
String encoding,
Decorator decorator,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(Reader reader)
Transforms an input stream into HTML using the default Configuration.
|
static String |
process(Reader reader,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(Reader reader,
Configuration configuration)
Transforms an input stream into HTML using the given Configuration.
|
static String |
process(Reader reader,
Decorator decorator)
Transforms an input stream into HTML.
|
static String |
process(Reader reader,
Decorator decorator,
boolean safeMode)
Transforms an input stream into HTML.
|
static String |
process(String input)
Transforms an input String into HTML using the default Configuration.
|
static String |
process(String input,
boolean safeMode)
Transforms an input String into HTML.
|
static String |
process(String input,
Configuration configuration)
Transforms an input String into HTML using the given Configuration.
|
static String |
process(String input,
Decorator decorator)
Transforms an input String into HTML.
|
static String |
process(String input,
Decorator decorator,
boolean safeMode)
Transforms an input String into HTML.
|
public static final String process(Reader reader, Configuration configuration) throws IOException
reader - The Reader to process.configuration - The Configuration.IOException - if an IO error occursConfigurationpublic static final String process(String input, Configuration configuration)
input - The String to process.configuration - The Configuration.Configurationpublic static final String process(File file, Configuration configuration) throws IOException
file - The File to process.configuration - the ConfigurationIOException - if an IO error occursConfigurationpublic static final String process(InputStream input, Configuration configuration) throws IOException
input - The InputStream to process.configuration - The Configuration.IOException - if an IO error occursConfigurationpublic static final String process(String input)
input - The String to process.Configuration.DEFAULTpublic static final String process(String input, boolean safeMode)
input - The String to process.safeMode - Set to true to escape unsafe HTML tags.Configuration.DEFAULTpublic static final String process(String input, Decorator decorator)
input - The String to process.decorator - The decorator to use.Configuration.DEFAULTpublic static final String process(String input, Decorator decorator, boolean safeMode)
input - The String to process.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.Configuration.DEFAULTpublic static final String process(File file) throws IOException
file - The File to process.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, boolean safeMode) throws IOException
file - The File to process.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, Decorator decorator) throws IOException
file - The File to process.decorator - The decorator to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, Decorator decorator, boolean safeMode) throws IOException
file - The File to process.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, String encoding) throws IOException
file - The File to process.encoding - The encoding to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, String encoding, boolean safeMode) throws IOException
file - The File to process.encoding - The encoding to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, String encoding, Decorator decorator) throws IOException
file - The File to process.encoding - The encoding to use.decorator - The decorator to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(File file, String encoding, Decorator decorator, boolean safeMode) throws IOException
file - The File to process.encoding - The encoding to use.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input) throws IOException
input - The InputStream to process.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, boolean safeMode) throws IOException
input - The InputStream to process.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, Decorator decorator) throws IOException
input - The InputStream to process.decorator - The decorator to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, Decorator decorator, boolean safeMode) throws IOException
input - The InputStream to process.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, String encoding) throws IOException
input - The InputStream to process.encoding - The encoding to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, String encoding, boolean safeMode) throws IOException
input - The InputStream to process.encoding - The encoding to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, String encoding, Decorator decorator) throws IOException
input - The InputStream to process.encoding - The encoding to use.decorator - The decorator to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(InputStream input, String encoding, Decorator decorator, boolean safeMode) throws IOException
input - The InputStream to process.encoding - The encoding to use.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(Reader reader) throws IOException
reader - The Reader to process.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(Reader reader, boolean safeMode) throws IOException
reader - The Reader to process.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(Reader reader, Decorator decorator) throws IOException
reader - The Reader to process.decorator - The decorator to use.IOException - if an IO error occursConfiguration.DEFAULTpublic static final String process(Reader reader, Decorator decorator, boolean safeMode) throws IOException
reader - The Reader to process.decorator - The decorator to use.safeMode - Set to true to escape unsafe HTML tags.IOException - if an IO error occursConfiguration.DEFAULTCopyright © 2016. All Rights Reserved.