edu.arizona.cs.mbel.metadata
Class USStream

java.lang.Object
  extended byedu.arizona.cs.mbel.metadata.USStream

public class USStream
extends java.lang.Object

This class represents the user string stream in module metadata. User strings are UNICODE-16 strings, little-endian. They are single-null terminated.


Constructor Summary
USStream(MSILInputStream in, long size)
          Parses a USStream from an input stream, of the given size
 
Method Summary
 java.lang.String getStringByOffset(long off)
          Returns a string from the user string stream, indexed by byte offset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USStream

public USStream(MSILInputStream in,
                long size)
         throws java.io.IOException
Parses a USStream from an input stream, of the given size

Parameters:
in - the input stream
size - the size in bytes of this USStream
Method Detail

getStringByOffset

public java.lang.String getStringByOffset(long off)
Returns a string from the user string stream, indexed by byte offset

Parameters:
off - the byte offset within the stream of the start of the string
Returns:
the string at the given offset