Package ch.bailu.gtk.gio
Klasse BufferedOutputStream
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.OutputStream
ch.bailu.gtk.gio.FilterOutputStream
ch.bailu.gtk.gio.BufferedOutputStream
- Alle implementierten Schnittstellen:
PointerInterface
Buffered output stream implements [class@Gio.FilterOutputStream] and provides
for buffered writes.
By default, `GBufferedOutputStream`'s buffer size is set at 4 kilobytes.
To create a buffered output stream, use [ctor@Gio.BufferedOutputStream.new],
or [ctor@Gio.BufferedOutputStream.new_sized] to specify the buffer's size
at construction.
To get the size of a buffer within a buffered input stream, use
[method@Gio.BufferedOutputStream.get_buffer_size]. To change the size of a
buffered output stream's buffer, use [method@Gio.BufferedOutputStream.set_buffer_size].
Note that the buffer's size cannot be reduced below the size of the data within the buffer.
for buffered writes.
By default, `GBufferedOutputStream`'s buffer size is set at 4 kilobytes.
To create a buffered output stream, use [ctor@Gio.BufferedOutputStream.new],
or [ctor@Gio.BufferedOutputStream.new_sized] to specify the buffer's size
at construction.
To get the size of a buffer within a buffered input stream, use
[method@Gio.BufferedOutputStream.get_buffer_size]. To change the size of a
buffered output stream's buffer, use [method@Gio.BufferedOutputStream.set_buffer_size].
Note that the buffer's size cannot be reduced below the size of the data within the buffer.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gio.OutputStream
OutputStream.OnAsyncReadyCallback
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBufferedOutputStream
(OutputStream base_stream) Creates a new buffered output stream for a base stream.BufferedOutputStream
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceSeekable
.boolean
Checks if the buffer automatically grows as data is added.long
Gets the size of the buffer in the @stream.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static BufferedOutputStream
newSizedBufferedOutputStream
(OutputStream base_stream, long size) Creates a new buffered output stream with a given buffer size.void
setAutoGrow
(boolean auto_grow) Sets whether or not the @stream's buffer should automatically grow.void
setBufferSize
(long size) Sets the size of the internal buffer to @size.Von Klasse geerbte Methoden ch.bailu.gtk.gio.FilterOutputStream
getBaseStream, getCloseBaseStream, setCloseBaseStream
Von Klasse geerbte Methoden ch.bailu.gtk.gio.OutputStream
clearPending, close, closeAsync, closeFinish, flush, flushAsync, flushFinish, hasPending, isClosed, isClosing, setPending, splice, spliceAsync, spliceFinish, write, writeAll, writeAllAsync, writeAllFinish, writeAsync, writeBytes, writeBytesAsync, writeBytesFinish, writeFinish, writevAllFinish, writevFinish
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
BufferedOutputStream
-
BufferedOutputStream
Creates a new buffered output stream for a base stream.- Parameter:
base_stream
- a [class@Gio.OutputStream].
-
-
Methodendetails
-
getClassHandler
-
newSizedBufferedOutputStream
public static BufferedOutputStream newSizedBufferedOutputStream(@Nonnull OutputStream base_stream, long size) Creates a new buffered output stream with a given buffer size.- Parameter:
base_stream
- a [class@Gio.OutputStream].size
- a #gsize.- Gibt zurück:
- a [class@Gio.OutputStream] with an internal buffer set to @size.
-
getAutoGrow
public boolean getAutoGrow()Checks if the buffer automatically grows as data is added.- Gibt zurück:
- `TRUE` if the @stream's buffer automatically grows, `FALSE` otherwise.
-
getBufferSize
public long getBufferSize()Gets the size of the buffer in the @stream.- Gibt zurück:
- the current size of the buffer.
-
setAutoGrow
public void setAutoGrow(boolean auto_grow) Sets whether or not the @stream's buffer should automatically grow.
If @auto_grow is true, then each write will just make the buffer
larger, and you must manually flush the buffer to actually write out
the data to the underlying stream.- Parameter:
auto_grow
- a #gboolean.
-
setBufferSize
public void setBufferSize(long size) Sets the size of the internal buffer to @size.- Parameter:
size
- a #gsize.
-
asSeekable
Implements interfaceSeekable
. Call this to get access to interface functions.- Gibt zurück:
Seekable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-