org.das2.util
Class DeflaterChannel

java.lang.Object
  extended by org.das2.util.DeflaterChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, java.nio.channels.WritableByteChannel

public class DeflaterChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel


Constructor Summary
DeflaterChannel(java.nio.channels.WritableByteChannel out)
           
 
Method Summary
 void close()
           
 void flush()
           
 boolean isOpen()
           
 int write(java.nio.ByteBuffer src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeflaterChannel

public DeflaterChannel(java.nio.channels.WritableByteChannel out)
Method Detail

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Throws:
java.io.IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface java.nio.channels.Channel

write

public int write(java.nio.ByteBuffer src)
          throws java.io.IOException
Specified by:
write in interface java.nio.channels.WritableByteChannel
Throws:
java.io.IOException