com.novell.admin.ns
Class StreamValue

java.lang.Object
  |
  +--com.novell.admin.ns.ValueComponent
        |
        +--com.novell.admin.ns.Value
              |
              +--com.novell.admin.ns.StreamValue
All Implemented Interfaces:
java.io.Serializable

public final class StreamValue
extends Value

Storage class for all syntaxes that use stream types.

This class is immutable.

See Also:
HexValue, StringValue, LongValue

Constructor Summary
StreamValue(Syntax syntax, InputStreamFactory factory)
          Constructor.
 
Method Summary
 InputStreamFactory getStreamFactory()
          Returns the value as a BufferedReader.
 java.io.InputStream getValue()
          Returns the value as a InputStream.
 
Methods inherited from class com.novell.admin.ns.ValueComponent
compareTo, equals, getSyntax, isWithinBounds, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamValue

public StreamValue(Syntax syntax,
                   InputStreamFactory factory)
Constructor.

This constructor should be called only from stream strategy classes and not directly in an application.

Parameters:
syntax - The associated syntax for this boolean value.
factory - The InputStreamFactory.
Method Detail

getValue

public java.io.InputStream getValue()
                             throws java.io.IOException,
                                    SPIException
Returns the value as a InputStream.
Returns:
The value as InputStream type.
Throws:
java.io.IOException - Refer to java.io.
SPIException - Thrown when the service provider caused an error.

getStreamFactory

public InputStreamFactory getStreamFactory()
Returns the value as a BufferedReader.
Returns:
The InputStreamFactory.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated December 17 2003 1746.