Package org.robovm.apple.corefoundation
Class CFReadStream
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFReadStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFReadStream extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFReadStream.CFReadStreamPtr
static interface
CFReadStream.ClientCallback
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFReadStream()
-
Method Summary
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
create
public static CFReadStream create(byte[] bytes)
-
create
public static CFReadStream create(java.nio.ByteBuffer bytes)
-
create
public static CFReadStream create(CFURL fileURL)
-
read
public long read(org.robovm.rt.bro.ptr.BytePtr buffer, long len)
-
read
public long read(java.nio.ByteBuffer bytes)
-
read
public long read(byte[] bytes)
-
read
public long read(byte[] bytes, int offset, int length)
-
setClientCallback
public boolean setClientCallback(CFStreamEventType streamEvents, CFReadStream.ClientCallback callback)
-
getProperty
public CFType getProperty(CFStreamProperty property)
-
getProperty
public CFType getProperty(CFSocketStreamProperty property)
-
getProperty
public CFType getProperty(CFFTPStreamProperty property)
-
setProperty
public boolean setProperty(CFStreamProperty property, CFType propertyValue)
-
setProperty
public boolean setProperty(CFSocketStreamProperty property, CFType propertyValue)
-
setProperty
public boolean setProperty(CFFTPStreamProperty property, CFType propertyValue)
-
scheduleInRunLoop
public void scheduleInRunLoop(CFRunLoop runLoop, CFRunLoopMode runLoopMode)
-
unscheduleFromRunLoop
public void unscheduleFromRunLoop(CFRunLoop runLoop, CFRunLoopMode runLoopMode)
-
getClassTypeID
public static long getClassTypeID()
-
create
public static CFReadStream create(CFAllocator alloc, CFURL fileURL)
-
getStatus
public CFStreamStatus getStatus()
-
getError
public CFError getError()
- Since:
- Available in iOS 2.0 and later.
-
openStream
public boolean openStream()
-
closeStream
public void closeStream()
-
hasBytesAvailable
public boolean hasBytesAvailable()
-
scheduleInRunLoop
public void scheduleInRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
-
unscheduleFromRunLoop
public void unscheduleFromRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
-
setDispatchQueue
public void setDispatchQueue(DispatchQueue q)
- Since:
- Available in iOS 7.0 and later.
-
getDispatchQueue
public DispatchQueue getDispatchQueue()
- Since:
- Available in iOS 7.0 and later.
-
getStreamError
public CFStreamError getStreamError()
-
-