com.novell.admin.ns
Class StreamValue

java.lang.Object
  extended bycom.novell.admin.ns.ValueComponent
      extended bycom.novell.admin.ns.Value
          extended bycom.novell.admin.ns.StreamValue
All Implemented Interfaces:
java.lang.Cloneable, 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, Serialized Form

Constructor Summary
StreamValue(Syntax syntax, InputStreamFactory factory)
          Constructor.
 
Method Summary
 InputStreamFactory getStreamFactory()
          Returns the value as an InputStreamFactory.
 java.io.InputStream getValue()
          Returns the value as a InputStream.
 
Methods inherited from class com.novell.admin.ns.Value
clone
 
Methods inherited from class com.novell.admin.ns.ValueComponent
compareTo, equals, getSyntax, isWithinBounds, toString
 
Methods inherited from class java.lang.Object
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

getStreamFactory

public InputStreamFactory getStreamFactory()
Returns the value as an InputStreamFactory.

Returns:
The InputStreamFactory.

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.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.