TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.fs
Class FsCachingController.Cache.ProxyOutputSocket

java.lang.Object
  extended by de.schlichtherle.truezip.socket.IOSocket<E,Entry>
      extended by de.schlichtherle.truezip.socket.OutputSocket<E>
          extended by de.schlichtherle.truezip.socket.DecoratingOutputSocket<Entry>
              extended by de.schlichtherle.truezip.fs.FsCachingController.Cache.ProxyOutputSocket
Enclosing class:
FsCachingController.Cache

private final class FsCachingController.Cache.ProxyOutputSocket
extends DecoratingOutputSocket<Entry>

An output socket proxy.


Constructor Summary
private FsCachingController.Cache.ProxyOutputSocket(OutputSocket<?> output)
           
 
Method Summary
private  void makeEntry()
          Ensure the existence of an entry in the file system.
 OutputStream newOutputStream()
          Returns a new output stream for writing bytes to the local target.
 
Methods inherited from class de.schlichtherle.truezip.socket.DecoratingOutputSocket
getBoundSocket, getLocalTarget, getPeerTarget, toString
 
Methods inherited from class de.schlichtherle.truezip.socket.OutputSocket
bind
 
Methods inherited from class de.schlichtherle.truezip.socket.IOSocket
copy, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsCachingController.Cache.ProxyOutputSocket

private FsCachingController.Cache.ProxyOutputSocket(OutputSocket<?> output)
Method Detail

newOutputStream

public OutputStream newOutputStream()
                             throws IOException
Description copied from class: OutputSocket
Returns a new output stream for writing bytes to the local target.

Implementations must enable calling this method any number of times. Furthermore, the returned output stream should not be buffered. Buffering should be addressed by the caller instead - see IOSocket.copy(de.schlichtherle.truezip.socket.InputSocket, de.schlichtherle.truezip.socket.OutputSocket).

Overrides:
newOutputStream in class DecoratingOutputSocket<Entry>
Returns:
A new output stream.
Throws:
FileNotFoundException - if the local target is not accessible for some reason.
IOException - on any other exceptional condition.

makeEntry

private void makeEntry()
                throws IOException
Ensure the existence of an entry in the file system.

Throws:
IOException

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.