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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
export
(String payload, boolean automaticFilenames, Component parent, File exportDir, String charsetName) void
export
(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, boolean automaticFilenames, Component component, File exportDir, String charsetName) protected abstract void
export
(org.harctoolbox.girr.Command command, String source, String title, int noRepeats, File file, String charsetName) void
exportFilename
(boolean automatic, Component parent, File exportDir) static Charset
static String
protected static String
static Document
getDocument
(DocumentFragment fragment) abstract DocumentFragment
static final String
abstract String[][]
static File
abstract String
getName()
abstract String
protected static DocumentFragment
protected void
possiblyMakeExecutable
(File file) static void
setCreatingUser
(String newCreatingUser) static void
setDateFormatFileString
(String aDateFormatFileString) static void
setDateFormatString
(String aDateFormatString) static void
setEncoding
(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:
IOException
TransformerException
org.harctoolbox.ircore.IrCoreException
org.harctoolbox.irp.IrpException
org.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:
IOException
TransformerException
org.harctoolbox.ircore.IrCoreException
org.harctoolbox.irp.IrpException
org.harctoolbox.girr.GirrException
-