src.com.ibm.as400.access.RCRunCommandReplyDataStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400-jdk8 Show documentation
Show all versions of jt400-jdk8 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// 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);
}
}