public interface NotebookOutput extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
appendFrontMatterProperty(CharSequence key,
CharSequence value,
CharSequence delimiter)
Append front matter property.
|
default void |
code(Runnable fn)
Code.
|
default <T> T |
code(UncheckedSupplier<T> fn)
Code t.
|
<T> T |
code(UncheckedSupplier<T> fn,
int maxLog,
int framesNo)
Code t.
|
static java.util.function.Consumer<NotebookOutput> |
concat(java.util.function.Consumer<NotebookOutput> fn,
java.util.function.Consumer<NotebookOutput> header)
Concat consumer.
|
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.
|
CharSequence |
getFrontMatterProperty(CharSequence key)
Gets front matter property.
|
FileNanoHTTPD |
getHttpd()
Gets httpd.
|
int |
getMaxOutSize()
Gets max out size.
|
CharSequence |
getName()
Gets name.
|
File |
getResourceDir()
Gets resource dir.
|
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 |
image(BufferedImage rawImage,
CharSequence caption)
Image string.
|
CharSequence |
link(File file,
CharSequence text)
Link string.
|
default void |
out(String fmt,
Object... args)
Out.
|
default <T> T |
out(UncheckedSupplier<T> fn)
Code t.
|
void |
p(CharSequence fmt,
Object... args)
P.
|
default void |
setFrontMatterProperty(CharSequence key,
CharSequence value)
Sets fm prop.
|
static java.util.function.Consumer<NotebookOutput> concat(@Nonnull java.util.function.Consumer<NotebookOutput> fn, @Nonnull java.util.function.Consumer<NotebookOutput> header)
fn - the fnheader - the headerdefault <T> T code(UncheckedSupplier<T> fn)
T - the type parameterfn - the fndefault <T> T out(UncheckedSupplier<T> fn)
T - the type parameterfn - the fn<T> T code(UncheckedSupplier<T> fn, int maxLog, int framesNo)
T - the type parameterfn - the fnmaxLog - the max logframesNo - the frames no@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 image(BufferedImage rawImage, CharSequence caption)
rawImage - the raw imagecaption - the captionCharSequence link(File file, CharSequence text)
file - the filetext - the textvoid p(CharSequence fmt, Object... args)
fmt - the fmtargs - the argsdefault 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()
int getMaxOutSize()
FileNanoHTTPD getHttpd()
Copyright © 2018 SimiaCryptus Software. All rights reserved.