public class ProcessorUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessorUtil.FragmentExtractor
To extract all content inside the header and footer.
|
static class |
ProcessorUtil.FragmentRemover
To remove all content inside the header and footer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING
System encoding (use as fall back for deprecated method with no given
encoding.
|
| Constructor and Description |
|---|
ProcessorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doProcess(Processor processor,
File in,
File out)
Deprecated.
since 1.0.4, prefer use the
doProcess(Processor, File, File, String). |
static void |
doProcess(Processor processor,
File in,
File out,
String encoding)
Launch the process of the given
processor to the given files. |
static void |
doProcess(Processor processor,
InputStream in,
OutputStream out,
String encoding)
Launch the process of the given
processor to the given streams. |
static void |
doProcess(Processor processor,
InputStreamReader in,
OutputStreamWriter out)
Launch the process of the given
processor to the given readers. |
static void |
doProcess(Processor processor,
String in,
String out)
Deprecated.
since 1.0.4, prefer use the
doProcess(Processor, String, String, String). |
static void |
doProcess(Processor processor,
String in,
String out,
String encoding)
Launch the process of the given
processor to the given files. |
static Filter[] |
getFilters(String filters,
String separator)
Instanciate a array of filters given by thier FQN separated by the
given separator.
|
static Processor |
newProcessor(String filters,
String separator)
Instanciate a new
Processor given an array of filters given by
their FQN separated by the given separator. |
public static final String DEFAULT_ENCODING
public static Processor newProcessor(String filters, String separator) throws Exception
Processor given an array of filters given by
their FQN separated by the given separator.filters - the string representionf of the filtersseparator - the separator of filterException - if any pbpublic static Filter[] getFilters(String filters, String separator) throws Exception
filters - the list of filters separated by the given separatorseparator - filter separatorException - if any pbpublic static void doProcess(Processor processor, String in, String out, String encoding) throws IOException
processor to the given files.processor - the processor to launchin - the input fileout - the output fileencoding - encoding to use to read and write filesIOException - if any problems while processing file@Deprecated public static void doProcess(Processor processor, String in, String out) throws IOException
doProcess(Processor, String, String, String).processor to the given files.processor - the processor to launchin - the input fileout - the output fileIOException - if any problems while processing filepublic static void doProcess(Processor processor, File in, File out, String encoding) throws IOException
processor to the given files.processor - the processor to launchin - the input fileout - the output fileencoding - encoding to use to read and write files.IOException - if any problems while processing filepublic static void doProcess(Processor processor, InputStream in, OutputStream out, String encoding) throws IOException
processor to the given streams.processor - the processor to launchin - the input fileout - the output fileencoding - encoding to use to read and write files.IOException - if any problems while processing filepublic static void doProcess(Processor processor, InputStreamReader in, OutputStreamWriter out) throws IOException
processor to the given readers.processor - the processor to launchin - the input fileout - the output fileIOException - if any problems while processing file@Deprecated public static void doProcess(Processor processor, File in, File out) throws IOException
doProcess(Processor, File, File, String).processor to the given files using
the system default encoding.processor - the processor to launchin - the input fileout - the output fileIOException - if any problems while processing fileCopyright © 2002-2012 CodeLutin. All Rights Reserved.