public class ARFFReporter<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>> extends QueryHeaderReporter<Q,Writer>
Modifier and Type | Field and Description |
---|---|
protected String |
delimiter |
protected File |
tempFile |
protected Writer |
tmpWriter |
protected String |
urlPrefix |
groupProperties, header, includeMol, template
Constructor and Description |
---|
ARFFReporter() |
ARFFReporter(Template template) |
ARFFReporter(Template template,
Profile groupedProperties,
net.idea.modbcum.i.processors.IProcessor... processors) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeTheHeader() |
protected Writer |
createTempWriter() |
void |
footer(Writer output,
Q query) |
String |
getFileExtension() |
protected String |
getPropertyHeader(Property p) |
protected String |
getRelationName() |
String |
getUrlPrefix() |
void |
header(Writer writer,
Q query) |
void |
open() |
Object |
processItem(IStructureRecord item) |
void |
setOutput(Writer output) |
void |
setUrlPrefix(String urlPrefix) |
protected void |
writeHeader(Writer writer) |
configureProcessors, configurePropertyProcessors, getGroupProperties, getHeader, getTemplate, isIncludeMol, setGroupProperties, setTemplate, template2Header
createBatch, isIncludeLicenseInTextFiles
getLicenseURI, getMaxRecords, getOutput, getProcessors, getStartTime, getTimeout, isAutoCommit, isShowFooter, isShowHeader, process, setAutoCommit, setCloseConnection, setLicenseURI, setMaxRecords, setProcessors, setShowFooter, setShowHeader, setStartTime, setTimeout, wrapup
close, getConnection, isCloseConnection, isEnabled, setConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected File tempFile
protected Writer tmpWriter
protected String urlPrefix
protected String delimiter
public ARFFReporter() throws IOException
IOException
public ARFFReporter(Template template)
public String getUrlPrefix()
public void setUrlPrefix(String urlPrefix)
public void setOutput(Writer output) throws Exception
setOutput
in interface net.idea.modbcum.i.reporter.Reporter<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
setOutput
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
Exception
protected Writer createTempWriter() throws IOException
IOException
protected void completeTheHeader()
public void footer(Writer output, Q query)
footer
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
protected void writeHeader(Writer writer) throws IOException
IOException
public void header(Writer writer, Q query)
header
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
protected String getRelationName()
public Object processItem(IStructureRecord item) throws net.idea.modbcum.i.exceptions.AmbitException
processItem
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
net.idea.modbcum.i.exceptions.AmbitException
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
open
in class net.idea.modbcum.p.DefaultAmbitProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
net.idea.modbcum.i.exceptions.DbAmbitException
public String getFileExtension()
getFileExtension
in interface net.idea.modbcum.i.reporter.Reporter<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
getFileExtension
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,Writer>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.