All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.com.ibm.as400.access.RCRunCommandReplyDataStream Maven / Gradle / Ivy

The newest version!
///////////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
// Filename:  RCRunCommandReplyDataStream.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-2007 International Business Machines Corporation and
// others.  All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////

package com.ibm.as400.access;

import java.io.IOException;
import java.io.InputStream;

// Run remote command reply data stream class.
class RCRunCommandReplyDataStream extends ClientAccessDataStream
{
    public Object getNewDataStream()
    {
        return new RCRunCommandReplyDataStream();
    }

    public int hashCode()
    {
        return 0x8002;
    }

    int getRC()
    {
        return get16bit(20);
    }

    AS400Message[] getMessageList(ConverterImplRemote converter) throws IOException
    {
        return RemoteCommandImplRemote.parseMessages(data_, converter);
    }

    protected int readAfterHeader(InputStream in) throws IOException
    {
        if (Trace.traceOn_) Trace.log(Trace.DIAGNOSTIC, "Receiving run command reply...");
        return super.readAfterHeader(in);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy