ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.io Namespace / BEBufferedRandomAccessFile Class / readUnsignedShort Method

In This Topic
    readUnsignedShort Method (BEBufferedRandomAccessFile)
    In This Topic
    Reads an unsigned short (i.e., 16 bit) from the input. It is returned as an int since Java does not have an unsigned short type. Prior to reading, the input should be realigned at the byte level.
    Syntax
    'Declaration
     
    
    Public Overrides Function readUnsignedShort() As Integer
    public override int readUnsignedShort()

    Return Value

    The next byte-aligned unsigned short (16 bit) from the input, as an int.
    Exceptions
    ExceptionDescription
    If the end-of file was reached before getting all the necessary data.
    If an I/O error ocurred.
    See Also