org.apache.axis2.datasource.jaxb
Class BOMOutputStreamFilter

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.axis2.datasource.jaxb.BOMOutputStreamFilter
All Implemented Interfaces:
Closeable, Flushable

public class BOMOutputStreamFilter
extends FilterOutputStream

Strip off the BOM when serializing an embedded JAXB object.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
BOMOutputStreamFilter(String encoding, OutputStream out)
          Create a BOMOutputStreamFilter to remove the BOM (Byte Order Mark)
 
Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BOMOutputStreamFilter

public BOMOutputStreamFilter(String encoding,
                             OutputStream out)
Create a BOMOutputStreamFilter to remove the BOM (Byte Order Mark)

Parameters:
encoding -
out -
Method Detail

write

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

write

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

write

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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.