public class NullNotebookOutput extends Object implements NotebookOutput
Constructor and Description |
---|
NullNotebookOutput()
Instantiates a new Null notebook output.
|
NullNotebookOutput(String name)
Instantiates a new Null notebook output.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
<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.
|
void |
p(CharSequence fmt,
Object... args)
P.
|
String |
png(BufferedImage rawImage,
CharSequence caption)
Image string.
|
File |
pngFile(BufferedImage rawImage,
File file)
Png file file.
|
NotebookOutput |
setArchiveHome(URI archiveHome)
Sets archive home.
|
NotebookOutput |
setAutobrowse(boolean autobrowse)
Sets autobrowse.
|
NotebookOutput |
setCurrentHome(URI currentHome)
Sets current home.
|
NotebookOutput |
setName(String name)
Sets name.
|
<T> T |
subreport(String reportName,
Function<NotebookOutput,T> fn)
Subreport t.
|
void |
write()
Write.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendFrontMatterProperty, concat, eval, out, out, run, setFrontMatterProperty
public NullNotebookOutput(String name)
name
- the namepublic NullNotebookOutput()
public void close()
close
in interface NotebookOutput
close
in interface Closeable
close
in interface AutoCloseable
@Nonnull public File pngFile(@Nonnull BufferedImage rawImage, File file)
NotebookOutput
pngFile
in interface NotebookOutput
rawImage
- the raw imagefile
- the file@Nonnull public String jpg(@Nullable BufferedImage rawImage, CharSequence caption)
NotebookOutput
jpg
in interface NotebookOutput
rawImage
- the raw imagecaption
- the caption@Nonnull public File jpgFile(@Nonnull BufferedImage rawImage, File file)
NotebookOutput
jpgFile
in interface NotebookOutput
rawImage
- the raw imagefile
- the filepublic <T> T eval(@Nonnull UncheckedSupplier<T> fn, int maxLog, int framesNo)
NotebookOutput
eval
in interface NotebookOutput
T
- the type parameterfn
- the fnmaxLog
- the max logframesNo
- the frames nopublic void write()
NotebookOutput
write
in interface NotebookOutput
@Nonnull public OutputStream file(@Nonnull CharSequence name)
NotebookOutput
file
in interface NotebookOutput
name
- the name@Nonnull public String file(@Nonnull CharSequence data, CharSequence caption)
NotebookOutput
file
in interface NotebookOutput
data
- the datacaption
- the caption@Nonnull public CharSequence file(@Nonnull byte[] data, @Nonnull CharSequence filename, CharSequence caption)
NotebookOutput
file
in interface NotebookOutput
data
- the datafilename
- the filenamecaption
- the caption@Nonnull public String file(@Nonnull CharSequence data, @Nonnull CharSequence fileName, CharSequence caption)
NotebookOutput
file
in interface NotebookOutput
data
- the datafileName
- the file namecaption
- the captionpublic void h1(CharSequence fmt, Object... args)
NotebookOutput
h1
in interface NotebookOutput
fmt
- the fmtargs
- the argspublic void h2(CharSequence fmt, Object... args)
NotebookOutput
h2
in interface NotebookOutput
fmt
- the fmtargs
- the argspublic void h3(CharSequence fmt, Object... args)
NotebookOutput
h3
in interface NotebookOutput
fmt
- the fmtargs
- the args@Nonnull public String png(BufferedImage rawImage, CharSequence caption)
NotebookOutput
png
in interface NotebookOutput
rawImage
- the raw pngcaption
- the caption@Nonnull public CharSequence link(File file, CharSequence text)
NotebookOutput
link
in interface NotebookOutput
file
- the filetext
- the textpublic void p(CharSequence fmt, Object... args)
NotebookOutput
p
in interface NotebookOutput
fmt
- the fmtargs
- the args@Nonnull public File getRoot()
NotebookOutput
getRoot
in interface NotebookOutput
@Nonnull public NotebookOutput onComplete(Runnable... tasks)
NotebookOutput
onComplete
in interface NotebookOutput
tasks
- the tasks@Nullable public CharSequence getFrontMatterProperty(CharSequence key)
NotebookOutput
getFrontMatterProperty
in interface NotebookOutput
key
- the keypublic CharSequence getName()
NotebookOutput
getName
in interface NotebookOutput
@Nonnull public File getResourceDir()
NotebookOutput
getResourceDir
in interface NotebookOutput
public int getMaxOutSize()
NotebookOutput
getMaxOutSize
in interface NotebookOutput
public FileHTTPD getHttpd()
NotebookOutput
getHttpd
in interface NotebookOutput
public <T> T subreport(String reportName, Function<NotebookOutput,T> fn)
NotebookOutput
subreport
in interface NotebookOutput
T
- the type parameterreportName
- the report namefn
- the fnpublic URI getCurrentHome()
NotebookOutput
getCurrentHome
in interface NotebookOutput
public NotebookOutput setCurrentHome(URI currentHome)
NotebookOutput
setCurrentHome
in interface NotebookOutput
currentHome
- the current homepublic URI getArchiveHome()
NotebookOutput
getArchiveHome
in interface NotebookOutput
public NotebookOutput setArchiveHome(URI archiveHome)
NotebookOutput
setArchiveHome
in interface NotebookOutput
archiveHome
- the archive homepublic NotebookOutput setName(String name)
NotebookOutput
setName
in interface NotebookOutput
name
- the namepublic NotebookOutput setAutobrowse(boolean autobrowse)
NotebookOutput
setAutobrowse
in interface NotebookOutput
autobrowse
- the autobrowseCopyright © 2019 SimiaCryptus Software. All rights reserved.