ABLE, Version 1.1b

com.ibm.able.beans
Class AbleExport

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.ibm.able.AbleObject
                          |
                          +--com.ibm.able.beans.AbleExport

public class AbleExport
extends AbleObject
implements java.io.Serializable

This class writes data out to external text files.

Version:
1.0.0; change log:
 Version   Description
 --------  -----------
 1.0.0     Initial release.

 
See Also:
Serialized Form

Field Summary
protected  java.lang.String dataFileName
           
protected  java.lang.String delimiters
           
protected  java.io.File file
           
protected  double[] inNum
           
protected  java.lang.String[] inSym
           
protected  int numFieldsPerRecord
           
 
Fields inherited from class com.ibm.able.AbleObject
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbleExport()
          Construct a default AbleExport object
AbleExport(java.lang.String aName)
          Construct an AbleExport object with specified name
 
Method Summary
 void close()
          close the output file
 void erase()
          close the current writer, and erase the current file
 java.lang.String getDataFileName()
          get the current source file name
 java.lang.String getDelimiters()
          return the current delimiters (default is space)
 int getNumFieldsPerRecord()
          return the number of fields in each record
 void init()
           
 void process()
          write out the contents of inputBuffer to file using specified delimiters
 void reset()
          re-initialize the bean close and reopen the output file
 void setDataFileName(java.lang.String newName)
          set the current source file name
 void setDelimiters(java.lang.String newDelims)
          set the current delimiters (default is space)
 
Methods inherited from class com.ibm.able.AbleObject
addAbleEventListener, addDestBufferConnection, addPropertyChangeListener, addPropertyConnection, addSourceBufferConnection, addStateChangeListener, Copyright, dataChanged, firePropertyChange, flushAbleEventQueue, getAbleEventListeners, getAbleEventProcessingEnabled, getAbleEventQueueSize, getBuffer, getBufferContents, getComment, getDestBufferConnections, getFileName, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getLogger, getName, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getParent, getPropertyConnectionManager, getSleepTime, getSourceBufferConnections, getState, handleAbleEvent, hasInputBuffer, hasOutputBuffer, init, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isChanged, isConnectable, isDataFlowEnabled, isTimerEventProcessingEnabled, notifyAbleEventListeners, processAbleEvent, processBufferConnections, processNoEventProcessingEnabledSituation, processTimerEvent, propertyChange, quitAll, quitEnabledEventProcessing, removeAbleEventListener, removeAllAbleEventListeners, removeAllBufferConnections, removeAllPropertyConnections, removeDestBufferConnection, removePropertyChangeListener, removePropertyConnection, removeSourceBufferConnection, removeStateChangeListener, restartEnabledEventProcessing, restoreFromFile, restoreFromFile, restoreFromSerializedFile, restoreFromStream, resumeAll, resumeEnabledEventProcessing, saveToFile, saveToFile, setAbleEventProcessingEnabled, setChanged, setComment, setDataFlowEnabled, setFileName, setInputBuffer, setInputBuffer, setLogger, setName, setOutputBuffer, setOutputBuffer, setParent, setSleepTime, setState, setTimerEventProcessingEnabled, sourceConnectionsOK, startEnabledEventProcessing, suspendAll, suspendEnabledEventProcessing, toString
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dataFileName

protected java.lang.String dataFileName

numFieldsPerRecord

protected int numFieldsPerRecord

delimiters

protected java.lang.String delimiters

file

protected java.io.File file

inNum

protected double[] inNum

inSym

protected java.lang.String[] inSym
Constructor Detail

AbleExport

public AbleExport()
           throws java.rmi.RemoteException
Construct a default AbleExport object

AbleExport

public AbleExport(java.lang.String aName)
           throws java.rmi.RemoteException
Construct an AbleExport object with specified name
Method Detail

init

public void init()
          throws java.rmi.RemoteException
Overrides:
init in class AbleObject

setDataFileName

public void setDataFileName(java.lang.String newName)
set the current source file name

getDataFileName

public java.lang.String getDataFileName()
get the current source file name

setDelimiters

public void setDelimiters(java.lang.String newDelims)
set the current delimiters (default is space)

getDelimiters

public java.lang.String getDelimiters()
return the current delimiters (default is space)

getNumFieldsPerRecord

public int getNumFieldsPerRecord()
return the number of fields in each record

process

public void process()
             throws java.rmi.RemoteException
write out the contents of inputBuffer to file using specified delimiters
Overrides:
process in class AbleObject

close

public void close()
close the output file

erase

public void erase()
           throws java.rmi.RemoteException
close the current writer, and erase the current file

reset

public void reset()
           throws java.rmi.RemoteException
re-initialize the bean close and reopen the output file
Overrides:
reset in class AbleObject

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'