DartInputStreamAdapter extension type

Helper class to adapt a Dart stream into a NSInputStream.

on
Implemented types
Available extensions

Constructors

DartInputStreamAdapter()
Returns a new instance of DartInputStreamAdapter constructed with the default new method.
DartInputStreamAdapter.as(ObjCObject other)
Constructs a DartInputStreamAdapter that points to the same underlying object as other.
DartInputStreamAdapter.fromPointer(Pointer<ObjCObjectImpl> other, {bool retain = false, bool release = false})
Constructs a DartInputStreamAdapter that wraps the given raw object pointer.

Properties

debugDescription → NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

debugDescription
no setter
delegate ↔ NSStreamDelegate?

Available on NSStream, provided by the NSStream$Methods extension

delegate
getter/setter pair
description → NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

description
no setter
hasBytesAvailable → bool

Available on NSInputStream, provided by the NSInputStream$Methods extension

hasBytesAvailable
no setter
hash → int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

hash
no setter
hashCode → int
The hash code for this object.
no setterinherited
isProxy → bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
object$ → ObjCObject
final
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streamError → NSError?

Available on NSStream, provided by the NSStream$Methods extension

streamError
no setter
streamStatus → NSStreamStatus

Available on NSStream, provided by the NSStream$Methods extension

streamStatus
no setter
superclass → ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

superclass
no setter

Methods

addData(NSData data) → DartNSUInteger

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

addData:
addObserver(Observer observer, {required NSString forKeyPath, int options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) → Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
autorelease() → NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

autorelease
class$() → ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

class
close() → void

Available on NSStream, provided by the NSStream$Methods extension

close
conformsToProtocol(Protocol aProtocol) → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

conformsToProtocol:
copy() → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

copy
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
getBuffer(Pointer<Pointer<Uint8>> buffer, {required Pointer<UnsignedLong> length}) → bool

Available on NSInputStream, provided by the NSInputStream$Methods extension

getBuffer:length:
init() → NSInputStream

Available on NSInputStream, provided by the NSInputStream$Methods extension

init
init() → NSStream

Available on NSStream, provided by the NSStream$Methods extension

init
init() → NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
init() → DartInputStreamAdapter

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

init
initWithData(NSData data) → NSInputStream

Available on NSInputStream, provided by the NSInputStream$Methods extension

initWithData:
initWithData(NSData data) → DartInputStreamAdapter

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

initWithData:
initWithFileAtPath(NSString path) → NSInputStream?

Available on NSInputStream, provided by the NSInputStream$Methods extension

initWithFileAtPath:
initWithFileAtPath(NSString path) → DartInputStreamAdapter?

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

initWithFileAtPath:
initWithURL(NSURL url) → NSInputStream?

Available on NSInputStream, provided by the NSInputStream$Methods extension

initWithURL:
initWithURL(NSURL url) → DartInputStreamAdapter?

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

initWithURL:
isEqual(ObjCObject object) → bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isEqual(ObjCObject object) → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isEqual:
isKindOfClass(ObjCObject aClass) → bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isKindOfClass(ObjCObject aClass) → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObject aClass) → bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
isMemberOfClass(ObjCObject aClass) → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isMemberOfClass:
isProxy() → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isProxy
methodForSelector(Pointer<ObjCSelector> aSelector) → Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) → NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void

Available on NSStream, provided by the NSStream$Methods extension

open
performSelector(Pointer<ObjCSelector> aSelector) → ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:
performSelector(Pointer<ObjCSelector> aSelector) → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) → ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) → ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) → ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:withObject:
propertyForKey(NSString key) → ObjCObject?

Available on NSStream, provided by the NSStream$Methods extension

propertyForKey:
read(Pointer<Uint8> buffer, {required DartNSUInteger maxLength}) → int

Available on NSInputStream, provided by the NSInputStream$Methods extension

read:maxLength:
release() → void

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

release
removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) → void

Available on NSStream, provided by the NSStream$Methods extension

removeFromRunLoop:forMode:
respondsToSelector(Pointer<ObjCSelector> sel) → bool

Available on ObjCObject, provided by the RespondsToSelector extension

respondsToSelector(Pointer<ObjCSelector> aSelector) → bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

respondsToSelector:
retain() → NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retain
retainCount() → int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retainCount
scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) → void

Available on NSStream, provided by the NSStream$Methods extension

scheduleInRunLoop:forMode:
self() → NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

self
setDone() → void

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

setDone
setError(NSError error) → void

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

setError:
setProperty(ObjCObject? property, {required NSString forKey}) → bool

Available on NSStream, provided by the NSStream$Methods extension

setProperty:forKey:
stream(NSStream aStream, {required DartNSUInteger handleEvent}) → void

Available on DartInputStreamAdapter, provided by the DartInputStreamAdapter$Methods extension

stream:handleEvent:
stream(NSStream aStream, {required DartNSUInteger handleEvent}) → void

Available on NSStreamDelegate, provided by the NSStreamDelegate$Methods extension

stream:handleEvent:
toString() → String
A string representation of this object.
inherited
zone() → Pointer<NSZone>

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

zone
zone() → Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

alloc() → DartInputStreamAdapter
alloc
allocWithZone(Pointer<NSZone> zone) → DartInputStreamAdapter
allocWithZone:
inputStreamWithData(NSData data) → DartInputStreamAdapter?
inputStreamWithData:
inputStreamWithFileAtPath(NSString path) → DartInputStreamAdapter?
inputStreamWithFileAtPath:
inputStreamWithPort(int sendPort) → DartInputStreamAdapter
Creates the adapter. @param sendPort A port to that is will receive two types of messages: -1 => The NSInputStream has been closed and the port can be closed. _ => The number of types being required in a read:maxLength call.
inputStreamWithURL(NSURL url) → DartInputStreamAdapter?
inputStreamWithURL:
isA(ObjCObject? obj) → bool
Returns whether obj is an instance of DartInputStreamAdapter.
new$() → DartInputStreamAdapter
new