public abstract class DelegatingStreamWrapper extends Object implements IStreamWrapper
Constructor and Description |
---|
DelegatingStreamWrapper(IStreamWrapper delegate) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doFinishInputStream(InputStream in) |
protected abstract void |
doFinishOutputStream(OutputStream out) |
protected abstract InputStream |
doWrapInputStream(InputStream in) |
protected abstract OutputStream |
doWrapOutputStream(OutputStream out) |
void |
finishInputStream(InputStream in) |
void |
finishOutputStream(OutputStream out) |
IStreamWrapper |
getDelegate() |
InputStream |
wrapInputStream(InputStream in) |
OutputStream |
wrapOutputStream(OutputStream out) |
public DelegatingStreamWrapper(IStreamWrapper delegate)
public IStreamWrapper getDelegate()
public InputStream wrapInputStream(InputStream in) throws IOException
wrapInputStream
in interface IStreamWrapper
IOException
public OutputStream wrapOutputStream(OutputStream out) throws IOException
wrapOutputStream
in interface IStreamWrapper
IOException
public void finishInputStream(InputStream in) throws IOException
finishInputStream
in interface IStreamWrapper
IOException
public void finishOutputStream(OutputStream out) throws IOException
finishOutputStream
in interface IStreamWrapper
IOException
protected abstract InputStream doWrapInputStream(InputStream in) throws IOException
IOException
protected abstract OutputStream doWrapOutputStream(OutputStream out) throws IOException
IOException
protected abstract void doFinishInputStream(InputStream in) throws IOException
IOException
protected abstract void doFinishOutputStream(OutputStream out) throws IOException
IOException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.