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 Method

Closes the stream resource.

Return Type

void

Modifiers

public abstract

unwrap ()

Abstract Method

Unwraps the source stream.

Return Type

Object

Modifiers

public abstract

forHTML (String)

Method

Returns a new wrapper for unwrapping a string of HTML.

This should be closed when finished.

IndexTypeName
1Stringsource
Return Type

SourceUnwrapper

Modifiers

public static

forHTML (File)

Method

Returns a new wrapper for unwrapping an HTML file.

This should be closed when finished.

IndexTypeName
1Filesource
Return Type

SourceUnwrapper

Modifiers

public static

forHTML (InputStream)

Method

Returns a new wrapper for unwrapping a stream of HTML.

This should be closed when finished.

IndexTypeName
1InputStreamsource
Return Type

SourceUnwrapper

Modifiers

public static