ca.idms.io
Class UnicodeDataInputStream

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

public class UnicodeDataInputStream
extends NativeDataInputStream

A UnicodeDataInputStream read data in "network" format using Unicode.

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.UnsupportedEncodingException,
                                  java.io.IOException
Reads a string from a stream as an array of bytes. Since each Unicode character is read as two bytes, the specified length is effectively multiplied by 2.

Overrides:
readBytes in class NativeDataInputStream
Parameters:
len - number of characters to read from stream
Returns:
a String
Throws:
java.io.UnsupportedEncodingException - not likely
java.io.IOException - if an IO error occurs
See Also:
NativeDataOutputStream.writeBytes(String, int)


Copyright © 2009 CA, All rights reserved