Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Base class for input stream implementations that perform some kind of filtering operation on a base stream. Typical examples of filtering operations are character set conversion, compression and byte order flipping.
Synopsis
- newtype FilterInputStream = FilterInputStream (ManagedPtr FilterInputStream)
- class (GObject o, IsDescendantOf FilterInputStream o) => IsFilterInputStream o
- toFilterInputStream :: (MonadIO m, IsFilterInputStream o) => o -> m FilterInputStream
- noFilterInputStream :: Maybe FilterInputStream
- filterInputStreamGetBaseStream :: (HasCallStack, MonadIO m, IsFilterInputStream a) => a -> m InputStream
- filterInputStreamGetCloseBaseStream :: (HasCallStack, MonadIO m, IsFilterInputStream a) => a -> m Bool
- filterInputStreamSetCloseBaseStream :: (HasCallStack, MonadIO m, IsFilterInputStream a) => a -> Bool -> m ()
- constructFilterInputStreamBaseStream :: (IsFilterInputStream o, IsInputStream a) => a -> IO (GValueConstruct o)
- getFilterInputStreamBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> m InputStream
- constructFilterInputStreamCloseBaseStream :: IsFilterInputStream o => Bool -> IO (GValueConstruct o)
- getFilterInputStreamCloseBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> m Bool
- setFilterInputStreamCloseBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> Bool -> m ()
Exported types
newtype FilterInputStream Source #
Memory-managed wrapper type.
Instances
Eq FilterInputStream Source # | |
Defined in GI.Gio.Objects.FilterInputStream (==) :: FilterInputStream -> FilterInputStream -> Bool # (/=) :: FilterInputStream -> FilterInputStream -> Bool # | |
GObject FilterInputStream Source # | |
Defined in GI.Gio.Objects.FilterInputStream gobjectType :: IO GType # | |
IsGValue FilterInputStream Source # | Convert |
Defined in GI.Gio.Objects.FilterInputStream toGValue :: FilterInputStream -> IO GValue # fromGValue :: GValue -> IO FilterInputStream # | |
HasParentTypes FilterInputStream Source # | |
Defined in GI.Gio.Objects.FilterInputStream | |
type ParentTypes FilterInputStream Source # | |
Defined in GI.Gio.Objects.FilterInputStream |
class (GObject o, IsDescendantOf FilterInputStream o) => IsFilterInputStream o Source #
Type class for types which can be safely cast to FilterInputStream
, for instance with toFilterInputStream
.
Instances
(GObject o, IsDescendantOf FilterInputStream o) => IsFilterInputStream o Source # | |
Defined in GI.Gio.Objects.FilterInputStream |
toFilterInputStream :: (MonadIO m, IsFilterInputStream o) => o -> m FilterInputStream Source #
Cast to FilterInputStream
, for types for which this is known to be safe. For general casts, use castTo
.
noFilterInputStream :: Maybe FilterInputStream Source #
A convenience alias for Nothing
:: Maybe
FilterInputStream
.
Methods
Overloaded methods
getBaseStream
filterInputStreamGetBaseStream Source #
:: (HasCallStack, MonadIO m, IsFilterInputStream a) | |
=> a |
|
-> m InputStream | Returns: a |
Gets the base stream for the filter stream.
getCloseBaseStream
filterInputStreamGetCloseBaseStream Source #
:: (HasCallStack, MonadIO m, IsFilterInputStream a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the base stream will be closed when stream
is
closed.
setCloseBaseStream
filterInputStreamSetCloseBaseStream Source #
:: (HasCallStack, MonadIO m, IsFilterInputStream a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the base stream will be closed when stream
is closed.
Properties
baseStream
No description available in the introspection data.
constructFilterInputStreamBaseStream :: (IsFilterInputStream o, IsInputStream a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “base-stream
” property. This is rarely needed directly, but it is used by new
.
getFilterInputStreamBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> m InputStream Source #
Get the value of the “base-stream
” property.
When overloading is enabled, this is equivalent to
get
filterInputStream #baseStream
closeBaseStream
No description available in the introspection data.
constructFilterInputStreamCloseBaseStream :: IsFilterInputStream o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “close-base-stream
” property. This is rarely needed directly, but it is used by new
.
getFilterInputStreamCloseBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> m Bool Source #
Get the value of the “close-base-stream
” property.
When overloading is enabled, this is equivalent to
get
filterInputStream #closeBaseStream
setFilterInputStreamCloseBaseStream :: (MonadIO m, IsFilterInputStream o) => o -> Bool -> m () Source #
Set the value of the “close-base-stream
” property.
When overloading is enabled, this is equivalent to
set
filterInputStream [ #closeBaseStream:=
value ]