Package org.robovm.apple.foundation
Class NSStream
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSStream
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
NSInputStream
,NSOutputStream
public class NSStream extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSStream.NSStreamPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSStream()
protected
NSStream(NSObject.Handle h, long handle)
protected
NSStream(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSStream
public NSStream()
-
NSStream
protected NSStream(NSObject.Handle h, long handle)
-
NSStream
protected NSStream(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getDelegate
public NSStreamDelegate getDelegate()
-
setDelegate
public void setDelegate(NSStreamDelegate v)
-
getStreamStatus
public NSStreamStatus getStreamStatus()
-
getStreamError
public NSError getStreamError()
-
setProperty
public void setProperty(NSStreamProperty key, NSObject value)
-
getSocketSecurityLevel
public NSStreamSocketSecurityLevel getSocketSecurityLevel()
- Since:
- Available in iOS 2.0 and later.
-
setSocketSecurityLevel
public NSStream setSocketSecurityLevel(NSStreamSocketSecurityLevel securityLevel)
- Since:
- Available in iOS 2.0 and later.
-
getSOCKSProxyConfiguration
public NSStreamSOCKSProxyConfiguration getSOCKSProxyConfiguration()
- Since:
- Available in iOS 2.0 and later.
-
setSOCKSProxyConfiguration
public NSStream setSOCKSProxyConfiguration(NSStreamSOCKSProxyConfiguration configuration)
- Since:
- Available in iOS 2.0 and later.
-
getDataWrittenToMemoryStream
public NSData getDataWrittenToMemoryStream()
- Since:
- Available in iOS 2.0 and later.
-
setDataWrittenToMemoryStream
public NSStream setDataWrittenToMemoryStream(NSData data)
- Since:
- Available in iOS 2.0 and later.
-
getCurrentOffset
public long getCurrentOffset()
- Since:
- Available in iOS 2.0 and later.
-
setCurrentOffset
public NSStream setCurrentOffset(long offset)
- Since:
- Available in iOS 2.0 and later.
-
getNetworkServiceType
public NSStreamNetworkServiceType getNetworkServiceType()
- Since:
- Available in iOS 4.0 and later.
-
setNetworkServiceType
public NSStream setNetworkServiceType(NSStreamNetworkServiceType serviceType)
- Since:
- Available in iOS 4.0 and later.
-
getInputStreamToHost
public static NSInputStream getInputStreamToHost(java.lang.String hostname, long port)
- Since:
- Available in iOS 8.0 and later.
-
getOutputStreamToHost
public static NSOutputStream getOutputStreamToHost(java.lang.String hostname, long port)
- Since:
- Available in iOS 8.0 and later.
-
getBoundInputStream
public static NSInputStream getBoundInputStream(long bufferSize)
- Since:
- Available in iOS 8.0 and later.
-
getBoundOutputStream
public static NSOutputStream getBoundOutputStream(long bufferSize)
- Since:
- Available in iOS 8.0 and later.
-
scheduleInRunLoop
public void scheduleInRunLoop(NSRunLoop aRunLoop, NSRunLoopMode mode)
-
removeFromRunLoop
public void removeFromRunLoop(NSRunLoop aRunLoop, NSRunLoopMode mode)
-
open
public void open()
-
close
public void close()
-
getProperty
public NSObject getProperty(NSStreamProperty key)
-
setProperty
protected boolean setProperty(NSObject property, NSStreamProperty key)
-
scheduleInRunLoop
public void scheduleInRunLoop(NSRunLoop aRunLoop, java.lang.String mode)
-
removeFromRunLoop
public void removeFromRunLoop(NSRunLoop aRunLoop, java.lang.String mode)
-
getStreamsToHost
protected static void getStreamsToHost(java.lang.String hostname, long port, NSInputStream.NSInputStreamPtr inputStream, NSOutputStream.NSOutputStreamPtr outputStream)
- Since:
- Available in iOS 8.0 and later.
-
getBoundStreams
protected static void getBoundStreams(long bufferSize, NSInputStream.NSInputStreamPtr inputStream, NSOutputStream.NSOutputStreamPtr outputStream)
- Since:
- Available in iOS 8.0 and later.
-
-