Class BOMInputStream.Builder

All Implemented Interfaces:
IOSupplier<BOMInputStream>
Enclosing class:
BOMInputStream

Builds a new BOMInputStream.

Using NIO

BOMInputStream s = BOMInputStream.builder()
  .setPath(Paths.get("MyFile.xml"))
  .setByteOrderMarks(ByteOrderMark.UTF_8)
  .setInclude(false)
  .get();

Using IO

BOMInputStream s = BOMInputStream.builder()
  .setFile(new File("MyFile.xml"))
  .setByteOrderMarks(ByteOrderMark.UTF_8)
  .setInclude(false)
  .get();
Since:
2.12.0
See Also: