public interface DirectoryWriter
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toHtml(@NotNull java.io.File directory,
@URL java.lang.String requestURL,
boolean includeParent)
Convert a given directory to an String containing a full valid HTML page.
|
java.lang.String |
toJson(@NotNull java.io.File directory,
@URL java.lang.String requestURL,
boolean includeParent)
Convert a given directory to an String of JSON.
|
java.lang.String toHtml(@NotNull
@NotNull java.io.File directory,
@URL
@URL java.lang.String requestURL,
boolean includeParent)
throws java.lang.Exception
directory - The directory to convert. Not null. Is directory.requestURL - The URL of the request that kicked off this processincludeParent - Whether the conversion should include reference to the parent directory.java.lang.Exception - for any conversion problemjava.lang.String toJson(@NotNull
@NotNull java.io.File directory,
@URL
@URL java.lang.String requestURL,
boolean includeParent)
throws java.lang.Exception
directory - The directory to convert. Not null. Is directory.requestURL - The URL of the request that kicked off this processincludeParent - Whether the conversion should include reference to the parent directory.java.lang.Exception - for any conversion problem