Interface ReadStream
Hierarchy
-
Socket
- ReadStream
Index
Properties
Optional isRaw
Optional isTTY
readable
writable
Methods
addListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
end
-
Returns void
-
Parameters
-
buffer: Buffer
-
Optional cb: Function
Returns void
-
-
Parameters
-
str: string
-
Optional cb: Function
Returns void
-
-
Parameters
-
str: string
-
Optional encoding: string
-
Optional cb: Function
Returns void
-
eventNames
-
Returns (string | symbol)[]
getMaxListeners
-
Returns number
isPaused
-
Returns boolean
listenerCount
-
Parameters
-
type: string | symbol
Returns number
-
listeners
-
Parameters
-
event: string | symbol
Returns Function[]
-
on
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
once
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
pause
-
Returns this
pipe
-
Type parameters
Parameters
-
destination: T
-
Optional options: object
-
Optional end?: boolean
-
Returns T
-
prependListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
prependOnceListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
read
-
Parameters
-
Optional size: number
Returns string | Buffer
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
resume
-
Returns this
setEncoding
-
Parameters
-
encoding: string | null
Returns void
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
Optional setRawMode
-
Parameters
-
mode: boolean
Returns void
-
unpipe
-
Type parameters
Parameters
-
Optional destination: T
Returns void
-
unshift
-
Parameters
-
chunk: string
Returns void
-
-
Parameters
-
chunk: Buffer
Returns void
-
wrap
-
Parameters
-
oldStream: ReadableStream
Returns ReadableStream
-
write
-
Parameters
-
buffer: Buffer | string
-
Optional cb: Function
Returns boolean
-
-
Parameters
-
str: string
-
Optional encoding: string
-
Optional cb: Function
Returns boolean
-
Generated using TypeDoc