org.brains2b.sql.meta.types
Interface Stream


public interface Stream

Simple interface that defines a data-type as stream and supplies both an output as input stream for the datatype.

Version:
0.90 [Mar 18, 2008]
Author:
dennis@brains2b.nl

Method Summary
 java.io.InputStream getInputStream()
          get the input stream
 java.io.OutputStream getOutputStream()
          get the output stream
 boolean isAccessed()
          check if the input or output was ever used to prevent unecessary reading and writing for streams that were never accessed.
 

Method Detail

getInputStream

java.io.InputStream getInputStream()
                                   throws java.sql.SQLException
get the input stream

Returns:
InputStream
Throws:
SQLException, - if the InputStream cannot be created
java.sql.SQLException

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.sql.SQLException
get the output stream

Returns:
OutputStream
Throws:
SQLException, - if the OutputStream cannot be created
java.sql.SQLException

isAccessed

boolean isAccessed()
                   throws java.sql.SQLException
check if the input or output was ever used to prevent unecessary reading and writing for streams that were never accessed.

Returns:
boolean, true if stream was accessed, false otherwise
Throws:
SQLException, - if the Input or OutputStream cannot be accessed
java.sql.SQLException