Class Renderers
- java.lang.Object
-
- io.virtdata.docsys.metafs.fs.renderfs.api.Renderers
-
public class Renderers extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Renderers()
-
Method Summary
Modifier and Type Method Description voidadd(FileContentRenderer renderer)FileContentRendererforTargetPath(java.nio.file.Path path)Return the first renderer which matches the target extension and which also has a readable source file under the source extension, or null if none is available.java.util.List<FileContentRenderer>getRendererTypes()java.lang.StringtoString()
-
-
-
Method Detail
-
add
public void add(FileContentRenderer renderer)
-
getRendererTypes
public java.util.List<FileContentRenderer> getRendererTypes()
-
forTargetPath
public FileContentRenderer forTargetPath(java.nio.file.Path path)
Return the first renderer which matches the target extension and which also has a readable source file under the source extension, or null if none is available.- Parameters:
path- The target path which is meant to be rendered- Returns:
- A renderer or null, if none are available
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-