public interface FileContentVisitor
This interface includes default implementations of all the visit methods so that that implementors can implement only he methods that result meaningful on each particular use case.
| Modifier and Type | Method and Description |
|---|---|
default void |
visit(byte content)
Invoked when the file has one single
byte as content |
default void |
visit(byte[] content)
Invoked when the file has one single
byte[] as content |
default void |
visit(InputStream content)
Invoked when the file has an
InputStream as content |
default void |
visit(OutputHandler handler)
Invoked when the file has an
OutputHandler as content |
default void |
visit(String content)
Invoked when the file has
String content |
default void visit(String content) throws Exception
String contentcontent - the file's contentExceptiondefault void visit(byte content)
throws Exception
byte as contentcontent - the file's contentExceptiondefault void visit(byte[] content)
throws Exception
byte[] as contentcontent - the file's contentExceptiondefault void visit(OutputHandler handler) throws Exception
OutputHandler as contenthandler - the file's contentExceptiondefault void visit(InputStream content) throws Exception
InputStream as contentcontent - the file's contentExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.