com.sun.cldc.io
Class ResourceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.cldc.io.ResourceInputStream

public class ResourceInputStream
extends java.io.InputStream


Field Summary
private  java.lang.Object handle
           
private  int pos
           
private  int size
           
 
Constructor Summary
ResourceInputStream(java.lang.String s)
           
 
Method Summary
 int available()
           
 void close()
           
private static void close(java.lang.Object obj)
           
private static java.lang.String fixResourceName(java.lang.String s)
           
private static java.lang.Object open(java.lang.String s)
           
 int read()
           
 int read(byte[] abyte0, int i, int j)
           
private static int read(java.lang.Object obj)
           
private static int readBytes(java.lang.Object obj, byte[] abyte0, int i, int j, int k)
           
private static int size(java.lang.Object obj)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handle

private java.lang.Object handle

pos

private int pos

size

private int size
Constructor Detail

ResourceInputStream

public ResourceInputStream(java.lang.String s)
                    throws java.io.IOException
Parameters:
s -
Throws:
java.io.IOException
Method Detail

fixResourceName

private static java.lang.String fixResourceName(java.lang.String s)
                                         throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Returns:
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Returns:
Throws:
java.io.IOException

read

public int read(byte[] abyte0,
                int i,
                int j)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Parameters:
abyte0 -
i -
j -
Returns:
Throws:
java.io.IOException

open

private static java.lang.Object open(java.lang.String s)
                              throws java.io.IOException
Throws:
java.io.IOException

close

private static void close(java.lang.Object obj)
                   throws java.io.IOException
Throws:
java.io.IOException

size

private static int size(java.lang.Object obj)
                 throws java.io.IOException
Throws:
java.io.IOException

read

private static int read(java.lang.Object obj)
                 throws java.io.IOException
Throws:
java.io.IOException

readBytes

private static int readBytes(java.lang.Object obj,
                             byte[] abyte0,
                             int i,
                             int j,
                             int k)
                      throws java.io.IOException
Throws:
java.io.IOException