IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
FileOutputStreamAccessor.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
7
11 internal sealed class FileOutputStreamAccessor : Accessor<object>
12 {
13
14 MethodAccessor<Func<object, object>> init1;
15 MethodAccessor<Func<object, object>> init2;
16 FieldAccessor<object, object> fd;
17
22 public FileOutputStreamAccessor(AccessorTypeResolver resolver) :
23 base(resolver, "java.io.FileOutputStream")
24 {
25
26 }
27
32 public object Init1(object fd) => GetConstructor(ref init1, Resolve("java.io.File")).Invoker(fd);
33
38 public object Init2(object fd) => GetConstructor(ref init2, Resolve("java.io.FileDescriptor")).Invoker(fd);
39
45 public object GetFd(object self) => GetField(ref fd, nameof(fd)).GetValue(self);
46
53 public void SetFd(object self, object value) => GetField(ref fd, nameof(fd)).SetValue(self, value);
54
55 }
56
57#endif
58
59}