Ruddi™ UDDI Client API
1.0

inspireit.uddi.io
Class UDDIInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--inspireit.uddi.io.UDDIInputStream

public abstract class UDDIInputStream
extends java.io.InputStream

UDDIInputStream is an abstract InputStream class that allows reading UDDI response objects such as a BindingDetail, a ServiceInfo, etc. from an InputStream. UDDIInputStream has to be subclassed in order to implement the appropriate data conversions needed to turn a low-level information stream to a high-level UDDI object.

Author:
Bertrand Fontaine, INSPIRE IT $Revision: 1.2 $

Field Summary
protected  java.io.InputStream in
          InputStream containing the UDDI information.
protected  java.lang.String UDDI_XMLNS
           
 
Constructor Summary
UDDIInputStream(java.io.InputStream in)
          UDDIInputStream constructor.
 
Method Summary
 int available()
          Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
 void close()
          Closes this input stream and releases any system resources associated with the stream.
 void mark(int readlimit)
          Marks the current position in this input stream.
 boolean markSupported()
          Tests if this input stream supports the mark and reset methods.
 int read()
          Reads the next byte of data from the input stream.
 int read(byte[] b)
          Reads some number of bytes from the input stream and stores them into the buffer array b.
 int read(byte[] b, int off, int len)
          Reads up to len bytes of data from the input stream into an array of bytes.
abstract  AssertionStatusReport readAssertionStatusReport()
          Reads a AssertionStatusReport.
abstract  AuthToken readAuthToken()
          Reads an AuthToken.
abstract  BindingDetail readBindingDetail()
          Reads a BindingDetail.
abstract  BusinessDetail readBusinessDetail()
          Reads a BusinessDetail.
abstract  BusinessDetailExt readBusinessDetailExt()
          Reads a BusinessDetailExt.
abstract  BusinessList readBusinessList()
          Reads a BusinessList.
abstract  DispositionReport readDispositionReport()
          Reads a DispositionReport.
abstract  PublisherAssertions readPublisherAssertions()
          Reads a PublisherAssertions.
abstract  RegisteredInfo readRegisteredInfo()
          Reads a DispositionReport.
abstract  RelatedBusinessesList readRelatedBusinessesList()
          Reads a RelatedBusinessesList.
abstract  ServiceDetail readServiceDetail()
          Reads a ServiceDetail.
abstract  ServiceList readServiceList()
          Reads a ServiceList.
abstract  TModelDetail readTModelDetail()
          Reads a TModelDetail.
abstract  TModelList readTModelList()
          Reads a TModelList.
 void reset()
          Repositions this stream to the position at the time the mark method was last called on this input stream.
 long skip(long n)
          Skips over and discards n bytes of data from this input stream.
 void writeTo(java.io.OutputStream out)
          Pipes the content of this input stream to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.io.InputStream in
InputStream containing the UDDI information.


UDDI_XMLNS

protected java.lang.String UDDI_XMLNS
Constructor Detail

UDDIInputStream

public UDDIInputStream(java.io.InputStream in)
UDDIInputStream constructor.

Parameters:
in - InputStream containing the UDDI information.
Method Detail

readAuthToken

public abstract AuthToken readAuthToken()
                                 throws UDDIException
Reads an AuthToken.

Returns:
an AuthToken
UDDIException

readBindingDetail

public abstract BindingDetail readBindingDetail()
                                         throws UDDIException
Reads a BindingDetail.

Returns:
the BindingDetail read
UDDIException

readBusinessList

public abstract BusinessList readBusinessList()
                                       throws UDDIException
Reads a BusinessList.

Returns:
the BusinessList read
UDDIException

readServiceList

public abstract ServiceList readServiceList()
                                     throws UDDIException
Reads a ServiceList.

Returns:
the ServiceList read
UDDIException

readRegisteredInfo

public abstract RegisteredInfo readRegisteredInfo()
                                           throws UDDIException
Reads a DispositionReport.

Returns:
the DispositionReport
UDDIException

readTModelList

public abstract TModelList readTModelList()
                                   throws UDDIException
Reads a TModelList.

Returns:
the TModelList read
UDDIException

readBusinessDetail

public abstract BusinessDetail readBusinessDetail()
                                           throws UDDIException
Reads a BusinessDetail.

Returns:
the BusinessDetail read
UDDIException

readBusinessDetailExt

public abstract BusinessDetailExt readBusinessDetailExt()
                                                 throws UDDIException
Reads a BusinessDetailExt.

Returns:
the BusinessDetailExt
UDDIException

readServiceDetail

public abstract ServiceDetail readServiceDetail()
                                         throws UDDIException
Reads a ServiceDetail.

Returns:
the ServiceDetail read
UDDIException

readTModelDetail

public abstract TModelDetail readTModelDetail()
                                       throws UDDIException
Reads a TModelDetail.

Returns:
the TModelDetail read
UDDIException

readDispositionReport

public abstract DispositionReport readDispositionReport()
                                                 throws UDDIException
Reads a DispositionReport.

Returns:
the DispositionReport read
UDDIException

readPublisherAssertions

public abstract PublisherAssertions readPublisherAssertions()
                                                     throws UDDIException
Reads a PublisherAssertions.

Returns:
a PublisherAssertions
UDDIException

readAssertionStatusReport

public abstract AssertionStatusReport readAssertionStatusReport()
                                                         throws UDDIException
Reads a AssertionStatusReport.

Returns:
an AssertionStatusReport
UDDIException

readRelatedBusinessesList

public abstract RelatedBusinessesList readRelatedBusinessesList()
                                                         throws UDDIException
Reads a RelatedBusinessesList.

Returns:
an RelatedBusinessesList
UDDIException

available

public int available()
              throws java.io.IOException
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.

Overrides:
available in class java.io.InputStream
Returns:
the number of bytes that can be read from this input stream without blocking
Throws:
java.io.IOException - if an I/O error occurs

close

public void close()
           throws java.io.IOException
Closes this input stream and releases any system resources associated with the stream.

Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException - if an I/O error occurs

mark

public void mark(int readlimit)
Marks the current position in this input stream.

Overrides:
mark in class java.io.InputStream
Parameters:
readlimit - The maximum limit of bytes that can be read before the mark position becomes invalid.

markSupported

public boolean markSupported()
Tests if this input stream supports the mark and reset methods.

Overrides:
markSupported in class java.io.InputStream
Returns:
true if this true type supports the mark and reset method; false otherwise

read

public int read()
         throws java.io.IOException
Reads the next byte of data from the input stream.

Specified by:
read in class java.io.InputStream
Returns:
the next byte of data, or -1 if the end of the stream is reached
Throws:
java.io.IOException - if an I/O error occurs

read

public int read(byte[] b)
         throws java.io.IOException
Reads some number of bytes from the input stream and stores them into the buffer array b.

Overrides:
read in class java.io.InputStream
Parameters:
b - The buffer into which the data is read.
Returns:
the total number of bytes read into the buffer, or -1 is there is no more data because the end of the stream has been reached.
Throws:
java.io.IOException - if an I/O error occurs

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Reads up to len bytes of data from the input stream into an array of bytes.

Overrides:
read in class java.io.InputStream
Parameters:
b - The buffer into which the data is read.
off - The start offset in array b at which the data is written.
len - The maximum number of bytes to read.
Returns:
the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.
Throws:
java.io.IOException - if an I/O error occurs

reset

public void reset()
           throws java.io.IOException
Repositions this stream to the position at the time the mark method was last called on this input stream.

Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException - if an I/O error occurs

skip

public long skip(long n)
          throws java.io.IOException
Skips over and discards n bytes of data from this input stream.

Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException - if an I/O error occurs

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Pipes the content of this input stream to the given output stream. It is the responsibility of the caller to eventually close the output stream once the operation has been performed.

Parameters:
out - The OutputStream on which to write data from this InputStream.
Throws:
java.io.IOException - if an I/O error occurs

Ruddi™ UDDI Client API
1.0

Download now! | Submit a bug or feature
(c) 2003 INSPIRE IT
Bld Brand Whitlock 109
1200 Brussels, Belgium
All Rights Reserved.