Package 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
,AutoCloseable
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
Constructors Constructor Description BOMOutputStreamFilter(String encoding, OutputStream out)
Create a BOMOutputStreamFilter to remove the BOM (Byte Order Mark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.io.OutputStream
nullOutputStream
-
-
-
-
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 classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
-