Class FileLoader
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class FileLoader : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FileLoader
- Implements
- Inherited Members
Constructors
FileLoader(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FileLoader(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileLoader(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileLoader(CreationData data)
Parameters
dataCreationData
FileLoader(FileLoaderHandle)
protected FileLoader(FileLoaderHandle handle)
Parameters
handleFileLoaderHandle
Fields
BufferPropertyDefinition
public static readonly Property<Buffer?, FileLoader> BufferPropertyDefinition
Field Value
FilePropertyDefinition
public static readonly Property<File?, FileLoader> FilePropertyDefinition
Field Value
InputStreamPropertyDefinition
public static readonly Property<InputStream?, FileLoader> InputStreamPropertyDefinition
Field Value
LocationPropertyDefinition
public static readonly Property<File, FileLoader> LocationPropertyDefinition
Field Value
Properties
Buffer
public Buffer? Buffer { get; }
Property Value
File
public File? File { get; }
Property Value
InputStream
public InputStream? InputStream { get; }
Property Value
Location
public File Location { get; }
Property Value
Methods
GetBuffer()
public Buffer GetBuffer()
Returns
GetCompressionType()
public CompressionType GetCompressionType()
Returns
GetEncoding()
public Encoding GetEncoding()
Returns
GetFile()
public File GetFile()
Returns
GetGType()
public static Type GetGType()
Returns
GetInputStream()
public InputStream? GetInputStream()
Returns
GetLocation()
public File? GetLocation()
Returns
GetNewlineType()
public NewlineType GetNewlineType()
Returns
LoadFinish(AsyncResult)
public bool LoadFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
New(Buffer, File)
public static FileLoader New(Buffer buffer, File file)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed FileLoader instance for a given pointer.
public static FileLoader NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewFromStream(Buffer, File, InputStream)
public static FileLoader NewFromStream(Buffer buffer, File file, InputStream stream)
Parameters
bufferBufferfileFilestreamInputStream
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileLoader and sets the properties specified by the construct arguments.
public static FileLoader NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetCandidateEncodings(SList)
public void SetCandidateEncodings(SList candidateEncodings)
Parameters
candidateEncodingsSList