org.fjank.jcache
Class CacheOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.fjank.jcache.CacheOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class CacheOutputStream
extends ByteArrayOutputStream

Class for handlig writes to a StreamCacheObject

Author:
Frank Karlstrøm

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
CacheOutputStream(StreamCacheObject strObj)
           
 
Method Summary
 void close()
          writes the internal bytearray down to the StreamCacheObject.
 
Methods inherited from class java.io.ByteArrayOutputStream
reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheOutputStream

public CacheOutputStream(StreamCacheObject strObj)
Method Detail

close

public void close()
           throws IOException
writes the internal bytearray down to the StreamCacheObject.

Specified by:
close in interface Closeable
Overrides:
close in class ByteArrayOutputStream
Throws:
IOException


Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.