package uk.co.mmscomputing.device.capi.sound; import java.io.*; public class LawOutputStream extends FilterOutputStream{ static private byte[] inverse=null; public LawOutputStream(OutputStream out)throws IOException{ super(out); } public void write(int b)throws IOException{ out.write(inverse[b&0x000000FF]); } public void write(byte[] b)throws IOException{ int len=b.length; for(int i=0;i>=1; s^=u; }while((s^u)>s); } } }