uk.co.mmscomputing.io
Class RLEOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by uk.co.mmscomputing.io.RLEOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class RLEOutputStream
extends java.io.FilterOutputStream


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
RLEOutputStream(java.io.OutputStream out)
           
RLEOutputStream(java.io.OutputStream out, int bytesPerCodeWord)
           
 
Method Summary
 void flush()
           
 void setStartCodeWord(int cw)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int cw)
           
 
Methods inherited from class java.io.FilterOutputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLEOutputStream

public RLEOutputStream(java.io.OutputStream out)

RLEOutputStream

public RLEOutputStream(java.io.OutputStream out,
                       int bytesPerCodeWord)
Method Detail

setStartCodeWord

public void setStartCodeWord(int cw)

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(int cw)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.FilterOutputStream
Throws:
java.io.IOException


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.