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:
- java.io.Closeable, java.io.Flushable
public class BOMOutputStreamFilter
- extends java.io.FilterOutputStream
Strip off the BOM when serializing an embedded JAXB object.
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary |
BOMOutputStreamFilter(java.lang.String encoding,
java.io.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 |
BOMOutputStreamFilter
public BOMOutputStreamFilter(java.lang.String encoding,
java.io.OutputStream out)
- Create a BOMOutputStreamFilter to remove the BOM (Byte Order Mark)
- Parameters:
encoding
- out
-
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.