class Parser extends Object with Writable
htmlparser2 Parser
- Annotations
- @RawJSType() @native() @JSImport( "htmlparser2" , "Parser" )
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Parser
- Writable
- IEventEmitter
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Parser(handler: ParserHandler, options: ParserOptions = js.native)
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
-
def
_write(chunk: Buffer, callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
def
_write(chunk: String, encoding: String, callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
def
_writev(chunks: Array[Chunk], callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
def
addListener(eventName: String, listener: Function): Parser.this.type
- Definition Classes
- IEventEmitter
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
cork(): Unit
- Definition Classes
- Writable
-
val
domain: String
- Definition Classes
- IEventEmitter
-
def
done(): Unit
Parses the end of the buffer and clears the stack, calls onend.
Parses the end of the buffer and clears the stack, calls onend.
- See also
io.scalajs.nodejs.stream.Writable.end()
-
def
emit(name: String, args: Any*): Any
- Definition Classes
- IEventEmitter
-
def
end(callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
def
end(chunk: String, encoding: String): Unit
- Definition Classes
- Writable
-
def
end(chunk: String, encoding: String, callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
def
end(chunk: |[String, Buffer]): Unit
- Definition Classes
- Writable
-
def
end(chunk: |[String, Buffer], callback: Function1[Error, Any]): Unit
- Definition Classes
- Writable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getMaxListeners(): Int
- Definition Classes
- IEventEmitter
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
listenerCount(eventName: String): Int
- Definition Classes
- IEventEmitter
-
def
listeners(eventName: String): Array[Function]
- Definition Classes
- IEventEmitter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
on(eventName: String, listener: Function): Parser.this.type
- Definition Classes
- IEventEmitter
-
def
once(eventName: String, listener: Function): Parser.this.type
- Definition Classes
- IEventEmitter
-
def
parseChunk(chunk: |[String, Buffer]): Unit
Parses a chunk of data and calls the corresponding callbacks.
Parses a chunk of data and calls the corresponding callbacks.
- chunk
the chunk of data to parse
- See also
io.scalajs.nodejs.stream.Writable.write()
-
def
parseComplete(): Unit
Resets the parser, parses the data & calls end.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
removeAllListeners(): Parser.this.type
- Definition Classes
- IEventEmitter
-
def
removeAllListeners(eventName: String): Parser.this.type
- Definition Classes
- IEventEmitter
-
def
removeListener(eventName: String, listener: Function): Parser.this.type
- Definition Classes
- IEventEmitter
-
def
reset(): Unit
Resets buffer & stack, calls onreset.
-
def
setDefaultEncoding(encoding: String): Parser.this.type
- Definition Classes
- Writable
-
def
setMaxListeners(n: Int): Parser.this.type
- Definition Classes
- IEventEmitter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uncork(): Unit
- Definition Classes
- Writable
-
val
usingDomains: Boolean
- Definition Classes
- IEventEmitter
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
write(chunk: |[Buffer, String], encoding: String, callback: Function1[Error, Any]): Boolean
- Definition Classes
- Writable
-
def
write(chunk: |[Buffer, String], encoding: String): Boolean
- Definition Classes
- Writable
-
def
write(chunk: |[Buffer, String], callback: Function1[Error, Any]): Boolean
- Definition Classes
- Writable