SourceUnwrapper
Interface
A utility for unwrapping compiled/written source.
There is a provided version for unwrapping HTML to an HTMElement tree structure. This can be used to navigate, edit, sanitise and recompile existing HTML pages.
Implements
AutoCloseable
Modifiers
public abstract
Methods
close ()
Abstract MethodCloses the stream resource.
Return Type
void
Modifiers
public abstract
unwrap ()
Abstract MethodUnwraps the source stream.
Return Type
Object
Modifiers
public abstract
forHTML (String)
MethodReturns a new wrapper for unwrapping a string of HTML.
This should be closed when finished.
Index | Type | Name |
---|---|---|
1 | String | source |
Return Type
SourceUnwrapper
Modifiers
public static
forHTML (File)
MethodReturns a new wrapper for unwrapping an HTML file.
This should be closed when finished.
Index | Type | Name |
---|---|---|
1 | File | source |
Return Type
SourceUnwrapper
Modifiers
public static
forHTML (InputStream)
MethodReturns a new wrapper for unwrapping a stream of HTML.
This should be closed when finished.
Index | Type | Name |
---|---|---|
1 | InputStream | source |
Return Type
SourceUnwrapper
Modifiers
public static