gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.FileInputStream

Description

GFileInputStream provides input streams that take their content from a file.

GFileInputStream implements Seekable, which allows the input stream to jump to arbitrary positions in the file, provided the filesystem of the file allows it. To find the position of a file input stream, use seekableTell. To find out if a file input stream supports seeking, use Seekable.can_seek(). To position a file input stream, use Seekable.seek().

Synopsis

Exported types

newtype FileInputStream Source #

Memory-managed wrapper type.

Instances

Instances details
Eq FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

GObject FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

ManagedPtrNewtype FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

TypedObject FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

Methods

glibType :: IO GType #

HasParentTypes FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

HasAttributeList FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

(info ~ ResolveFileInputStreamMethod t FileInputStream, OverloadedMethod info FileInputStream p, HasField t FileInputStream p) => HasField (t :: Symbol) FileInputStream (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

Methods

getField :: FileInputStream -> p #

(info ~ ResolveFileInputStreamMethod t FileInputStream, OverloadedMethodInfo info FileInputStream) => IsLabel t (MethodProxy info FileInputStream) Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

(info ~ ResolveFileInputStreamMethod t FileInputStream, OverloadedMethod info FileInputStream p) => IsLabel t (FileInputStream -> p) Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

Methods

fromLabel :: FileInputStream -> p #

IsGValue (Maybe FileInputStream) Source #

Convert FileInputStream to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.FileInputStream

type AttributeList FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

type ParentTypes FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

type SignalList FileInputStream Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

class (GObject o, IsDescendantOf FileInputStream o) => IsFileInputStream o Source #

Type class for types which can be safely cast to FileInputStream, for instance with toFileInputStream.

Instances

Instances details
(GObject o, IsDescendantOf FileInputStream o) => IsFileInputStream o Source # 
Instance details

Defined in GI.Gio.Objects.FileInputStream

toFileInputStream :: (MonadIO m, IsFileInputStream o) => o -> m FileInputStream Source #

Cast to FileInputStream, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveFileInputStreamMethod (t :: Symbol) o where ... Source #

Equations

ResolveFileInputStreamMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveFileInputStreamMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveFileInputStreamMethod "canSeek" o = SeekableCanSeekMethodInfo 
ResolveFileInputStreamMethod "canTruncate" o = SeekableCanTruncateMethodInfo 
ResolveFileInputStreamMethod "clearPending" o = InputStreamClearPendingMethodInfo 
ResolveFileInputStreamMethod "close" o = InputStreamCloseMethodInfo 
ResolveFileInputStreamMethod "closeAsync" o = InputStreamCloseAsyncMethodInfo 
ResolveFileInputStreamMethod "closeFinish" o = InputStreamCloseFinishMethodInfo 
ResolveFileInputStreamMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveFileInputStreamMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveFileInputStreamMethod "getv" o = ObjectGetvMethodInfo 
ResolveFileInputStreamMethod "hasPending" o = InputStreamHasPendingMethodInfo 
ResolveFileInputStreamMethod "isClosed" o = InputStreamIsClosedMethodInfo 
ResolveFileInputStreamMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveFileInputStreamMethod "notify" o = ObjectNotifyMethodInfo 
ResolveFileInputStreamMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveFileInputStreamMethod "queryInfo" o = FileInputStreamQueryInfoMethodInfo 
ResolveFileInputStreamMethod "queryInfoAsync" o = FileInputStreamQueryInfoAsyncMethodInfo 
ResolveFileInputStreamMethod "queryInfoFinish" o = FileInputStreamQueryInfoFinishMethodInfo 
ResolveFileInputStreamMethod "read" o = InputStreamReadMethodInfo 
ResolveFileInputStreamMethod "readAll" o = InputStreamReadAllMethodInfo 
ResolveFileInputStreamMethod "readAllAsync" o = InputStreamReadAllAsyncMethodInfo 
ResolveFileInputStreamMethod "readAllFinish" o = InputStreamReadAllFinishMethodInfo 
ResolveFileInputStreamMethod "readAsync" o = InputStreamReadAsyncMethodInfo 
ResolveFileInputStreamMethod "readBytes" o = InputStreamReadBytesMethodInfo 
ResolveFileInputStreamMethod "readBytesAsync" o = InputStreamReadBytesAsyncMethodInfo 
ResolveFileInputStreamMethod "readBytesFinish" o = InputStreamReadBytesFinishMethodInfo 
ResolveFileInputStreamMethod "readFinish" o = InputStreamReadFinishMethodInfo 
ResolveFileInputStreamMethod "ref" o = ObjectRefMethodInfo 
ResolveFileInputStreamMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveFileInputStreamMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveFileInputStreamMethod "seek" o = SeekableSeekMethodInfo 
ResolveFileInputStreamMethod "skip" o = InputStreamSkipMethodInfo 
ResolveFileInputStreamMethod "skipAsync" o = InputStreamSkipAsyncMethodInfo 
ResolveFileInputStreamMethod "skipFinish" o = InputStreamSkipFinishMethodInfo 
ResolveFileInputStreamMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveFileInputStreamMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveFileInputStreamMethod "tell" o = SeekableTellMethodInfo 
ResolveFileInputStreamMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveFileInputStreamMethod "truncate" o = SeekableTruncateMethodInfo 
ResolveFileInputStreamMethod "unref" o = ObjectUnrefMethodInfo 
ResolveFileInputStreamMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveFileInputStreamMethod "getData" o = ObjectGetDataMethodInfo 
ResolveFileInputStreamMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveFileInputStreamMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveFileInputStreamMethod "setData" o = ObjectSetDataMethodInfo 
ResolveFileInputStreamMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveFileInputStreamMethod "setPending" o = InputStreamSetPendingMethodInfo 
ResolveFileInputStreamMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveFileInputStreamMethod l o = MethodResolutionFailed l o :: Type 

queryInfo

fileInputStreamQueryInfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsFileInputStream a, IsCancellable b) 
=> a

stream: a FileInputStream.

-> Text

attributes: a file attribute query string.

-> Maybe b

cancellable: optional Cancellable object, Nothing to ignore.

-> m FileInfo

Returns: a FileInfo, or Nothing on error. (Can throw GError)

Queries a file input stream the given attributes. This function blocks while querying the stream. For the asynchronous (non-blocking) version of this function, see fileInputStreamQueryInfoAsync. While the stream is blocked, the stream will set the pending flag internally, and any other operations on the stream will fail with IOErrorEnumPending.

queryInfoAsync

fileInputStreamQueryInfoAsync Source #

Arguments

:: (HasCallStack, MonadIO m, IsFileInputStream a, IsCancellable b) 
=> a

stream: a FileInputStream.

-> Text

attributes: a file attribute query string.

-> Int32

ioPriority: the I/O priority of the request

-> Maybe b

cancellable: optional Cancellable object, Nothing to ignore.

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the request is satisfied

-> m () 

Queries the stream information asynchronously. When the operation is finished callback will be called. You can then call fileInputStreamQueryInfoFinish to get the result of the operation.

For the synchronous version of this function, see fileInputStreamQueryInfo.

If cancellable is not Nothing, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be set

queryInfoFinish

fileInputStreamQueryInfoFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsFileInputStream a, IsAsyncResult b) 
=> a

stream: a FileInputStream.

-> b

result: a AsyncResult.

-> m FileInfo

Returns: FileInfo. (Can throw GError)

Finishes an asynchronous info query operation.