org.broadleafcommerce.cms.file.service
Class GloballySharedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.broadleafcommerce.cms.file.service.GloballySharedInputStream
All Implemented Interfaces:
Closeable

public class GloballySharedInputStream
extends InputStream

This class serves as a marker interface to indicate that the resource comes from a shared area of the filesystem. It allows multi-site implementations to only generate one copy of assets that are being resized.

Author:
bpolster

Constructor Summary
GloballySharedInputStream(InputStream parentInputStream)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int arg0)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] arg0)
           
 int read(byte[] arg0, int arg1, int arg2)
           
 void reset()
           
 long skip(long arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GloballySharedInputStream

public GloballySharedInputStream(InputStream parentInputStream)
Method Detail

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 arg0)
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[] arg0,
                int arg1,
                int arg2)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] arg0)
         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 arg0)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException


Copyright © 2013. All Rights Reserved.