org.broadleafcommerce.common.extensibility.context
Class ResourceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.broadleafcommerce.common.extensibility.context.ResourceInputStream
All Implemented Interfaces:
Closeable

public class ResourceInputStream
extends InputStream

Author:
jfischer

Constructor Summary
ResourceInputStream(InputStream is, String name)
           
ResourceInputStream(InputStream is, String name, List<String> previousNames)
           
 
Method Summary
 int available()
           
 void close()
           
 String getName()
           
 List<String> getNames()
           
 void mark(int i)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int i, int i1)
           
 void reset()
           
 long skip(long l)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceInputStream

public ResourceInputStream(InputStream is,
                           String name)

ResourceInputStream

public ResourceInputStream(InputStream is,
                           String name,
                           List<String> previousNames)
Method Detail

getNames

public List<String> getNames()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

mark

public void mark(int i)
Overrides:
mark in class InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] bytes)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] bytes,
                int i,
                int i1)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException

skip

public long skip(long l)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException


Copyright © 2013. All Rights Reserved.