Java org.apache.commons.io.input BOMInputStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io.input BOMInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io.input BOMInputStream.

The text is from its open source code.

Constructor

BOMInputStream(InputStream delegate)
Constructs a new BOM InputStream that excludes a ByteOrderMark#UTF_8 BOM.
BOMInputStream(InputStream delegate, boolean include)
Constructs a new BOM InputStream that detects a a ByteOrderMark#UTF_8 and optionally includes it.
BOMInputStream(InputStream delegate, ByteOrderMark... boms)
Constructs a new BOM InputStream that excludes the specified BOMs.
BOMInputStream(InputStream delegate, boolean include, ByteOrderMark... boms)
Constructs a new BOM InputStream that detects the specified BOMs and optionally includes them.

Method

voidclose()
Invokes the delegate's close() method.
ByteOrderMarkgetBOM()
Return the BOM (Byte Order Mark).
StringgetBOMCharsetName()
Return the BOM charset Name - ByteOrderMark#getCharsetName() .
booleanhasBOM()
Indicates whether the stream contains one of the specified BOMs.
intread()
Invokes the delegate's read() method, detecting and optionally skipping BOM.