Default implementation of IZptDocumentFactory.
More...
|
| bool | TryDetectMode (FileInfo sourceFile, out RenderingMode detectedMode) |
| | Gets a value indicating the RenderingMode detected for a given source file. More...
|
| |
| IZptDocument | CreateDocument (FileInfo sourceFile, Encoding encoding, RenderingMode?renderingMode) |
| | Creates a document from the given source file. More...
|
| |
| IZptDocument | CreateDocument (FileInfo sourceFile, Type providerType, Encoding encoding=null) |
| | Creates a document from the given source file. More...
|
| |
| IZptDocument | CreateDocument (Stream source, RenderingMode renderingMode, ISourceInfo sourceInfo=null, Encoding encoding=null) |
| | Creates a document from the given source stream. More...
|
| |
| IZptDocument | CreateDocument (Stream source, Type providerType, ISourceInfo sourceInfo=null, Encoding encoding=null) |
| | Creates a document from the given source file. More...
|
| |
| Tales.TemplateFile | CreateTemplateFile (FileInfo sourceFile, Encoding encoding, RenderingMode?renderingMode) |
| | Creates a template file from the given source file. More...
|
| |
| Tales.TemplateFile | CreateTemplateFile (FileInfo sourceFile, Type providerType, Encoding encoding=null) |
| | Creates a template file from the given source file. More...
|
| |
| Tales.TemplateFile | CreateTemplateFile (IZptDocument document) |
| | Creates a template file from the given ZPT document. More...
|
| |
| | ZptDocumentFactory (IZptDocumentProviderService providers=null) |
| | Initializes a new instance of the CSF.Zpt.ZptDocumentFactory class. More...
|
| |
|
| static IEnumerable< string > | GetHtmlExtensions () |
| | Gets the file extensions which indicate that an RenderingMode.Html should be used. More...
|
| |
| static IEnumerable< string > | GetXmlExtensions () |
| | Gets the file extensions which indicate that an RenderingMode.Xml should be used. More...
|
| |
Default implementation of IZptDocumentFactory.
| IZptDocument CSF.Zpt.ZptDocumentFactory.CreateDocument |
( |
FileInfo |
sourceFile, |
|
|
Encoding |
encoding, |
|
|
RenderingMode? |
renderingMode |
|
) |
| |
|
inline |
Creates a document from the given source file.
- Parameters
-
| sourceFile | The source file containing the document to create. |
| encoding | The text encoding to use in reading the source file. |
| renderingMode | The rendering mode to use in creating the output document. |
Implements CSF.Zpt.IZptDocumentFactory.
| IZptDocument CSF.Zpt.ZptDocumentFactory.CreateDocument |
( |
FileInfo |
sourceFile, |
|
|
Type |
providerType, |
|
|
Encoding |
encoding = null |
|
) |
| |
|
inline |
Creates a document from the given source file.
- Parameters
-
| sourceFile | The source file containing the document to create. |
| providerType | The IZptDocumentProvider type to use for creating the document. |
| encoding | The text encoding to use in reading the source file. |
Implements CSF.Zpt.IZptDocumentFactory.
Creates a document from the given source stream.
- Parameters
-
| source | The stream containing the document to create. |
| renderingMode | The rendering mode to use in creating the output document. |
| sourceInfo | Optional information about the source of the document. |
| encoding | The text encoding to use in reading the source file. |
Implements CSF.Zpt.IZptDocumentFactory.
| IZptDocument CSF.Zpt.ZptDocumentFactory.CreateDocument |
( |
Stream |
source, |
|
|
Type |
providerType, |
|
|
ISourceInfo |
sourceInfo = null, |
|
|
Encoding |
encoding = null |
|
) |
| |
|
inline |
Creates a document from the given source file.
- Parameters
-
| source | The stream containing the document to create. |
| providerType | The IZptDocumentProvider type to use for creating the document. |
| sourceInfo | Optional information about the source of the document. |
| encoding | The text encoding to use in reading the source file. |
Implements CSF.Zpt.IZptDocumentFactory.
Creates a template file from the given source file.
- Parameters
-
| sourceFile | The source file containing the document to create. |
| encoding | The text encoding to use in reading the source file. |
| renderingMode | The rendering mode to use in creating the output document. |
Implements CSF.Zpt.Tales.ITemplateFileFactory.
| Tales.TemplateFile CSF.Zpt.ZptDocumentFactory.CreateTemplateFile |
( |
FileInfo |
sourceFile, |
|
|
Type |
providerType, |
|
|
Encoding |
encoding = null |
|
) |
| |
|
inline |
Creates a template file from the given source file.
- Parameters
-
| sourceFile | The source file containing the document to create. |
| providerType | The IZptDocumentProvider type to use for creating the document. |
| encoding | The text encoding to use in reading the source file. |
Implements CSF.Zpt.Tales.ITemplateFileFactory.
| static IEnumerable<string> CSF.Zpt.ZptDocumentFactory.GetHtmlExtensions |
( |
| ) |
|
|
inlinestatic |
Gets the file extensions which indicate that an RenderingMode.Html should be used.
- Returns
- The HTML extensions.
| static IEnumerable<string> CSF.Zpt.ZptDocumentFactory.GetXmlExtensions |
( |
| ) |
|
|
inlinestatic |
Gets the file extensions which indicate that an RenderingMode.Xml should be used.
- Returns
- The XML extensions.
| bool CSF.Zpt.ZptDocumentFactory.TryDetectMode |
( |
FileInfo |
sourceFile, |
|
|
out RenderingMode |
detectedMode |
|
) |
| |
|
inline |
Gets a value indicating the RenderingMode detected for a given source file.
- Returns
true if the RenderingMode could be auto-detected; false if not.
- Parameters
-
| sourceFile | The source file. |
| detectedMode | Exposes the detected rendering mode. |
Implements CSF.Zpt.IZptDocumentFactory.
| virtual IEnumerable<string> CSF.Zpt.ZptDocumentFactory.SupportedFileExtensions |
|
get |
Gets the supported file extensions.
The supported file extensions.
The documentation for this class was generated from the following file:
- /home/craig/Projects/CSF.Zpt/CSF.Zpt/ZptDocumentFactory.cs