org.apache.james.jdkim.canon
Class RelaxedBodyCanonicalizer

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.james.jdkim.canon.RelaxedBodyCanonicalizer
All Implemented Interfaces:
Closeable, Flushable

public class RelaxedBodyCanonicalizer
extends FilterOutputStream

Implements Relaxed canonicalization for the body as defined in RFC4871 - 3.4.4. The "relaxed" Body Canonicalization Algorithm


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

Constructor Detail

RelaxedBodyCanonicalizer

public RelaxedBodyCanonicalizer(OutputStream out)
Method Detail

write

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

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.