ca.idms.io
Class UtfDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by ca.idms.io.NativeDataInputStream
              extended by ca.idms.io.UtfDataInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public class UtfDataInputStream
extends NativeDataInputStream

A UtfDataInputStream reads data in "network" format using UTF-8.

Since:
CA IDMS Server 4.2 OS/390 Edition
Version:
1.10, 0/03/00
Author:
Dave Ross

Field Summary
 
Fields inherited from class ca.idms.io.NativeDataInputStream
dis, fmt
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
 java.lang.String readBytes(int len)
          Reads a string from a stream as an array of bytes.
 
Methods inherited from class ca.idms.io.NativeDataInputStream
getBuffer, getCount, getFormat, getPosition, readBoolean, readByte, readBytesInternal, readBytesKatakana, readChar, readDouble, readFloat, readFully, readFully, readGraphic, readInt, readLine, readLong, readPacked, readShort, readUnsignedByte, readUnsignedShort, readUTF, readZoned, setSize, skipBytes, snap, toBigDecimal
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readBytes

public java.lang.String readBytes(int len)
                           throws java.io.IOException
Reads a string from a stream as an array of bytes. This is used to read character data in network format. The length is encoded in the data, which is not padded.

Overrides:
readBytes in class NativeDataInputStream
Parameters:
len - number of bytes to read, ignored
Returns:
a String
Throws:
java.io.IOException - if an IO error occurs
java.io.UnsupportedEncodingException - if the character set encoding is not supported
See Also:
NativeDataOutputStream.writeBytes(String, int)


Copyright © 2009 CA, All rights reserved