class GridFSBucketReadStream extends Object with Readable
GridFS Bucket Read Stream
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "GridFSBucketReadStream" )
- See also
http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html
- Alphabetic
- By Inheritance
- GridFSBucketReadStream
- Readable
- IEventEmitter
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GridFSBucketReadStream(chunks: Collection, files: Collection, readPreference: Any, filter: Any, options: |[ReadStreamOptions, RawOptions])
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
_read(size: Int): Unit
- Definition Classes
- Readable
-
def
_readableState: ReadableState
- Definition Classes
- Readable
-
def
abort(callback: Function): Unit
Marks this stream as aborted (will never push another data event) and kills the underlying cursor.
Marks this stream as aborted (will never push another data event) and kills the underlying cursor. Will emit the 'end' event, and then the 'close' event once the cursor is successfully killed.
- callback
called when the cursor is successfully closed or an error occurred.
abort(callback)
Example: -
def
addListener(eventName: String, listener: Function): GridFSBucketReadStream.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( ... )
-
val
domain: String
- Definition Classes
- IEventEmitter
-
def
emit(name: String, args: Any*): Any
- Definition Classes
- IEventEmitter
-
def
end(offset: Int): GridFSBucketReadStream
Sets the 0-based offset in bytes to start streaming from.
Sets the 0-based offset in bytes to start streaming from. Throws an error if this stream has entered flowing mode (e.g. if you've already called on('data'))
- offset
the offset in bytes to stop reading at
-
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
isPaused(): Boolean
- Definition Classes
- Readable
-
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): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
once(eventName: String, listener: Function): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
pause(): GridFSBucketReadStream.this.type
- Definition Classes
- Readable
-
def
pipe(destination: Writable, options: |[ReadablePipeOptions, RawOptions]): GridFSBucketReadStream.this.type
- Definition Classes
- Readable
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
push(chunk: Buffer): Boolean
- Definition Classes
- Readable
-
def
push(chunk: String, encoding: String): Boolean
- Definition Classes
- Readable
-
def
read[T](size: Int): T
- Definition Classes
- Readable
-
def
removeAllListeners(): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
removeAllListeners(eventName: String): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
removeListener(eventName: String, listener: Function): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
resume(): GridFSBucketReadStream.this.type
- Definition Classes
- Readable
-
def
setEncoding(encoding: String): GridFSBucketReadStream.this.type
- Definition Classes
- Readable
-
def
setMaxListeners(n: Int): GridFSBucketReadStream.this.type
- Definition Classes
- IEventEmitter
-
def
start(offset: Int): GridFSBucketReadStream
Sets the 0-based offset in bytes to start streaming from.
Sets the 0-based offset in bytes to start streaming from. Throws an error if this stream has entered flowing mode (e.g. if you've already called on('data'))
- offset
the offset in bytes to start reading at
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unpipe(destination: Writable): Unit
- Definition Classes
- Readable
-
def
unshift(chunk: Any): Unit
- Definition Classes
- Readable
-
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
wrap(stream: Any): Unit
- Definition Classes
- Readable