Package org.deeplearning4j.ui.standalone
Class StaticPageUtil
- java.lang.Object
-
- org.deeplearning4j.ui.standalone.StaticPageUtil
-
public class StaticPageUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringrenderHTML(Collection<Component> components)Given the specified components, render them to a stand-alone HTML page (which is returned as a String)static StringrenderHTML(Component... components)Given the specified components, render them to a stand-alone HTML page (which is returned as a String)static StringrenderHTMLContent(Component... components)static voidsaveHTMLFile(File outputFile, Component... components)A version ofrenderHTML(Component...)that exports the resulting HTML to the specified File.static voidsaveHTMLFile(String outputPath, Component... components)A version ofrenderHTML(Component...)that exports the resulting HTML to the specified path.
-
-
-
Method Detail
-
renderHTML
public static String renderHTML(Collection<Component> components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)- Parameters:
components- Components to render- Returns:
- Stand-alone HTML page, as a String
-
renderHTML
public static String renderHTML(Component... components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)- Parameters:
components- Components to render- Returns:
- Stand-alone HTML page, as a String
-
renderHTMLContent
public static String renderHTMLContent(Component... components) throws Exception
- Throws:
Exception
-
saveHTMLFile
public static void saveHTMLFile(String outputPath, Component... components) throws IOException
A version ofrenderHTML(Component...)that exports the resulting HTML to the specified path.- Parameters:
outputPath- Output pathcomponents- Components to render- Throws:
IOException
-
saveHTMLFile
public static void saveHTMLFile(File outputFile, Component... components) throws IOException
A version ofrenderHTML(Component...)that exports the resulting HTML to the specified File.- Parameters:
outputFile- Output pathcomponents- Components to render- Throws:
IOException
-
-