Class Exporter
java.lang.Object
org.harctoolbox.irscrutinizer.exporter.Exporter
- Direct Known Subclasses:
CommandExporter,RemoteSetExporter
This class is a common base class of all the exporters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexport(String payload, boolean automaticFilenames, Component parent, File exportDir, String charsetName) voidexport(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, boolean automaticFilenames, Component component, File exportDir, String charsetName) protected abstract voidexport(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, File file, String charsetName) voidexportFilename(boolean automatic, Component parent, File exportDir) static Charsetstatic Stringprotected static Stringstatic DocumentgetDocument(DocumentFragment fragment) abstract DocumentFragmentstatic final Stringabstract String[][]static Fileabstract StringgetName()abstract Stringprotected static DocumentFragmentprotected voidpossiblyMakeExecutable(File file) static voidsetCreatingUser(String newCreatingUser) static voidsetDateFormatFileString(String aDateFormatFileString) static voidsetDateFormatString(String aDateFormatString) static voidsetEncoding(String newEncoding)
-
Constructor Details
-
Exporter
protected Exporter()
-
-
Method Details
-
setDateFormatString
- Parameters:
aDateFormatString- the dateFormatString to set
-
setDateFormatFileString
- Parameters:
aDateFormatFileString- the dateFormatFileString to set
-
getDateString
-
getLastSaveFileOrCopy
- Throws:
IOException
-
getCreatingUser
-
setCreatingUser
-
getEncoding
-
getCharset
-
setEncoding
-
getDocument
-
parseToDocumentFragment
-
possiblyMakeExecutable
-
getDateFormatString
-
getFileExtensions
-
getPreferredFileExtension
-
getName
-
getDocumentation
-
getDocument
-
exportFilename
- Throws:
IOException
-
considersRepetitions
public boolean considersRepetitions() -
export
public void export(Document document, File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException -
export
public void export(String payload, File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException -
export
public File export(String payload, boolean automaticFilenames, Component parent, File exportDir, String charsetName) throws IOException - Throws:
IOException
-
export
public File export(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, boolean automaticFilenames, Component component, File exportDir, String charsetName) throws IOException, TransformerException, org.harctoolbox.ircore.IrCoreException, org.harctoolbox.irp.IrpException, org.harctoolbox.girr.GirrException - Throws:
IOExceptionTransformerExceptionorg.harctoolbox.ircore.IrCoreExceptionorg.harctoolbox.irp.IrpExceptionorg.harctoolbox.girr.GirrException
-
export
protected abstract void export(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, File file, String charsetName) throws IOException, TransformerException, org.harctoolbox.ircore.IrCoreException, org.harctoolbox.irp.IrpException, org.harctoolbox.girr.GirrException - Throws:
IOExceptionTransformerExceptionorg.harctoolbox.ircore.IrCoreExceptionorg.harctoolbox.irp.IrpExceptionorg.harctoolbox.girr.GirrException
-