com.ibm.as400.access.PxDSRV Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400 Show documentation
Show all versions of jt400 Show documentation
The Open Source version of the IBM Toolbox for Java
The newest version!
///////////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
// Filename: PxDSRV.java
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 1997-2000 International Business Machines Corporation and
// others. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
package com.ibm.as400.access;
import java.io.InputStream;
import java.io.IOException;
/**
The PxDSRV interface represents the set of
methods that are needed by the reader of a datastream.
**/
interface PxDSRV
extends Cloneable
{
/**
Returns a new copy of this datastream.
@return A new copy of this datastream.
@exception CloneNotSupportedException If the object cannot be cloned.
**/
public abstract Object clone ()
throws CloneNotSupportedException;
/**
Returns the datastream type.
@return The datastream type.
**/
public abstract short getType ();
/**
Loads this datastream by reading from an input stream.
@param input The input stream.
@param factory The datastream factory. This is sometimes
needed when datastreams are nested.
@exception IOException If an error occurs.
**/
public abstract void readFrom (InputStream input, PxDSFactory factory)
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy