object UTF_8_BOM extends Charset
This is a marker Charset that is used to write out UTF-8 BOM encoding in OutputStreamResource
Originally I attempted to have the Charset directly encode the BOM (like the UTF-16 Charsets) but ran into problems with not being able to call into protected methods of the UTF-8 Charset implementation and did not want to copy/paste a bunch of code and/or implement a bunch of hacks to make it work properly.
- Source
- UTF_8_BOM.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UTF_8_BOM
- Charset
- Comparable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def aliases(): Set[String]
- Definition Classes
- Charset
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEncode(): Boolean
- Definition Classes
- Charset
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def compareTo(arg0: Charset): Int
- Definition Classes
- Charset → Comparable
- def contains(cs: Charset): Boolean
- Definition Classes
- UTF_8_BOM → Charset
- final def decode(arg0: ByteBuffer): CharBuffer
- Definition Classes
- Charset
- def displayName(arg0: Locale): String
- Definition Classes
- Charset
- def displayName(): String
- Definition Classes
- Charset
- final def encode(arg0: String): ByteBuffer
- Definition Classes
- Charset
- final def encode(arg0: CharBuffer): ByteBuffer
- Definition Classes
- Charset
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(arg0: AnyRef): Boolean
- Definition Classes
- Charset → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def hashCode(): Int
- Definition Classes
- Charset → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isRegistered(): Boolean
- Definition Classes
- Charset
- final def name(): String
- Definition Classes
- Charset
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newDecoder(): CharsetDecoder
- Definition Classes
- UTF_8_BOM → Charset
- def newEncoder(): CharsetEncoder
- Definition Classes
- UTF_8_BOM → Charset
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toString(): String
- Definition Classes
- Charset → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeBOM(w: Writer): Unit
Write the UTF-8 BOM Char ('\uFEFF') to the Writer (which is assumed to be a UTF-8 Writer)
- def writeBOM(os: OutputStream): Unit
Write the UTF-8 BOM Bytes (0xEF 0xBB 0xBF) to the OutputStream