com.f1j.data.source
Class InputStream

java.lang.Object
  |
  +--com.actuate.util.Debug
        |
        +--com.f1j.util.Debug
              |
              +--com.f1j.util.ObjConst
                    |
                    +--com.f1j.util.Obj
                          |
                          +--com.f1j.util.AbstractIndexObj
                                |
                                +--com.f1j.util.SharedIndexObj
                                      |
                                      +--com.f1j.data.source.SourceImpl
                                            |
                                            +--com.f1j.data.source.InputStream

public class InputStream
extends com.f1j.data.source.SourceImpl
implements Source

This class provides an instance of an InputStream data source object.


Method Summary
 java.io.InputStream getInputStream()
          Returns the java.io.InputStream associated with this data source.
 boolean isResetOnEveryUse()
          Returns whether this source is set to call the reset() method on the stream every time the getInputStream() method is called.
 void setInputStream(java.io.InputStream stream)
          Sets the java.io.InputStream associated with this data souce.
 void setResetOnEveryUse(boolean reset)
          Sets whether or not to call the reset() method on the stream every time the getInputStream() method is called.
 

Method Detail

getInputStream

public java.io.InputStream getInputStream()
Returns the java.io.InputStream associated with this data source.
Returns:
a java.io.InputStream object or null if no input stream is associated with this data source.
See Also:
setInputStream(java.io.InputStream)

setInputStream

public void setInputStream(java.io.InputStream stream)
Sets the java.io.InputStream associated with this data souce.
Parameters:
stream - the java.io.InputStream to read from.
See Also:
getInputStream()

setResetOnEveryUse

public void setResetOnEveryUse(boolean reset)
Sets whether or not to call the reset() method on the stream every time the getInputStream() method is called. Setting this flag to true allows refreshing of the data ranges on the spreadsheet without having to call the setInputStream method multiple times. Only valid with stream types that support the reset() method.
Parameters:
reset - boolean. true = reset on every use.
Since:
9.0
See Also:
isResetOnEveryUse()

isResetOnEveryUse

public boolean isResetOnEveryUse()
Returns whether this source is set to call the reset() method on the stream every time the getInputStream() method is called.
Returns:
boolean. true = source calls the reset() method every time.
Since:
9.0
See Also:
setResetOnEveryUse(boolean)