public interface NotebookOutput extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
appendFrontMatterProperty(CharSequence key,
CharSequence value,
CharSequence delimiter)
Append front matter property.
|
void |
close() |
static Consumer<NotebookOutput> |
concat(Consumer<NotebookOutput> fn,
Consumer<NotebookOutput> header)
Concat consumer.
|
default <T> T |
eval(UncheckedSupplier<T> fn)
Code t.
|
<T> T |
eval(UncheckedSupplier<T> fn,
int maxLog,
int framesNo)
Code t.
|
CharSequence |
file(byte[] data,
CharSequence filename,
CharSequence caption)
File string.
|
OutputStream |
file(CharSequence name)
File output stream.
|
String |
file(CharSequence data,
CharSequence caption)
File string.
|
String |
file(CharSequence data,
CharSequence fileName,
CharSequence caption)
File string.
|
URI |
getArchiveHome()
Gets archive home.
|
URI |
getCurrentHome()
Gets current home.
|
CharSequence |
getFrontMatterProperty(CharSequence key)
Gets front matter property.
|
FileHTTPD |
getHttpd()
Gets httpd.
|
int |
getMaxOutSize()
Gets max out size.
|
CharSequence |
getName()
Gets name.
|
File |
getResourceDir()
Gets resource dir.
|
File |
getRoot()
Gets root.
|
void |
h1(CharSequence fmt,
Object... args)
H 1.
|
void |
h2(CharSequence fmt,
Object... args)
H 2.
|
void |
h3(CharSequence fmt,
Object... args)
H 3.
|
String |
jpg(BufferedImage rawImage,
CharSequence caption)
Jpg string.
|
File |
jpgFile(BufferedImage rawImage,
File file)
Jpg file file.
|
CharSequence |
link(File file,
CharSequence text)
Link string.
|
NotebookOutput |
onComplete(Runnable... tasks)
On complete notebook output.
|
default void |
out(CharSequence fmt,
Object... args)
Out.
|
default <T> T |
out(UncheckedSupplier<T> fn)
Code t.
|
void |
p(CharSequence fmt,
Object... args)
P.
|
String |
png(BufferedImage rawImage,
CharSequence caption)
Image string.
|
File |
pngFile(BufferedImage rawImage,
File file)
Png file file.
|
default void |
run(Runnable fn)
Code.
|
NotebookOutput |
setArchiveHome(URI archiveHome)
Sets archive home.
|
NotebookOutput |
setAutobrowse(boolean autobrowse)
Sets autobrowse.
|
NotebookOutput |
setCurrentHome(URI currentHome)
Sets current home.
|
default void |
setFrontMatterProperty(CharSequence key,
CharSequence value)
Sets fm prop.
|
NotebookOutput |
setName(String name)
Sets name.
|
<T> T |
subreport(String reportName,
Function<NotebookOutput,T> fn)
Subreport t.
|
void |
write()
Write.
|
static Consumer<NotebookOutput> concat(@Nonnull Consumer<NotebookOutput> fn, @Nonnull Consumer<NotebookOutput> header)
fn - the fnheader - the headerdefault <T> T eval(UncheckedSupplier<T> fn)
T - the type parameterfn - the fndefault <T> T out(UncheckedSupplier<T> fn)
T - the type parameterfn - the fn@Nonnull File pngFile(@Nonnull BufferedImage rawImage, File file)
rawImage - the raw imagefile - the file@Nonnull String jpg(@Nullable BufferedImage rawImage, CharSequence caption)
rawImage - the raw imagecaption - the caption@Nonnull File jpgFile(@Nonnull BufferedImage rawImage, File file)
rawImage - the raw imagefile - the file<T> T eval(UncheckedSupplier<T> fn, int maxLog, int framesNo)
T - the type parameterfn - the fnmaxLog - the max logframesNo - the frames novoid write()
throws IOException
IOException - the io exception@Nonnull OutputStream file(CharSequence name)
name - the name@Nonnull String file(CharSequence data, CharSequence caption)
data - the datacaption - the caption@Nonnull CharSequence file(byte[] data, CharSequence filename, CharSequence caption)
data - the datafilename - the filenamecaption - the caption@Nonnull String file(CharSequence data, CharSequence fileName, CharSequence caption)
data - the datafileName - the file namecaption - the captionvoid h1(CharSequence fmt, Object... args)
fmt - the fmtargs - the argsvoid h2(CharSequence fmt, Object... args)
fmt - the fmtargs - the argsvoid h3(CharSequence fmt, Object... args)
fmt - the fmtargs - the args@Nonnull String png(BufferedImage rawImage, CharSequence caption)
rawImage - the raw pngcaption - the captionCharSequence link(File file, CharSequence text)
file - the filetext - the textdefault void out(CharSequence fmt, Object... args)
fmt - the fmtargs - the argsvoid p(CharSequence fmt, Object... args)
fmt - the fmtargs - the args@Nonnull NotebookOutput onComplete(Runnable... tasks)
tasks - the tasksvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptiondefault void setFrontMatterProperty(CharSequence key, CharSequence value)
key - the keyvalue - the valuedefault void appendFrontMatterProperty(CharSequence key, CharSequence value, CharSequence delimiter)
key - the keyvalue - the valuedelimiter - the delimiter@Nullable CharSequence getFrontMatterProperty(CharSequence key)
key - the keyCharSequence getName()
NotebookOutput setName(String name)
name - the nameint getMaxOutSize()
FileHTTPD getHttpd()
<T> T subreport(String reportName, Function<NotebookOutput,T> fn)
T - the type parameterreportName - the report namefn - the fnURI getCurrentHome()
NotebookOutput setCurrentHome(URI currentHome)
currentHome - the current homeURI getArchiveHome()
NotebookOutput setArchiveHome(URI archiveHome)
archiveHome - the archive homeNotebookOutput setAutobrowse(boolean autobrowse)
autobrowse - the autobrowseCopyright © 2019 SimiaCryptus Software. All rights reserved.