org.apache.axis2.datasource.jaxb
Class BOMOutputStreamFilter
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
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.
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOMOutputStreamFilter
public BOMOutputStreamFilter(String encoding,
OutputStream out)
- Create a BOMOutputStreamFilter to remove the BOM (Byte Order Mark)
- Parameters:
encoding
- out
-
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.