-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBase64.swift
More file actions
118 lines (81 loc) · 6.2 KB
/
Base64.swift
File metadata and controls
118 lines (81 loc) · 6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.util.Base64 ///
open class Base64: java_swift.JavaObject {
public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var Base64JNIClass: jclass?
/// private java.util.Base64()
/// public static java.util.Base64$Decoder java.util.Base64.getDecoder()
private static var getDecoder_MethodID_1: jmethodID?
open class func getDecoder() -> /* class java.util.Base64$Decoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getDecoder", methodSig: "()Ljava/util/Base64$Decoder;", methodCache: &getDecoder_MethodID_1, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Decoder */ UnavailableObject( javaObject: __return ) : nil
}
/// public static java.util.Base64$Encoder java.util.Base64.getEncoder()
private static var getEncoder_MethodID_2: jmethodID?
open class func getEncoder() -> /* class java.util.Base64$Encoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getEncoder", methodSig: "()Ljava/util/Base64$Encoder;", methodCache: &getEncoder_MethodID_2, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Encoder */ UnavailableObject( javaObject: __return ) : nil
}
/// public static java.util.Base64$Decoder java.util.Base64.getMimeDecoder()
private static var getMimeDecoder_MethodID_3: jmethodID?
open class func getMimeDecoder() -> /* class java.util.Base64$Decoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getMimeDecoder", methodSig: "()Ljava/util/Base64$Decoder;", methodCache: &getMimeDecoder_MethodID_3, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Decoder */ UnavailableObject( javaObject: __return ) : nil
}
/// public static java.util.Base64$Encoder java.util.Base64.getMimeEncoder(int,byte[])
private static var getMimeEncoder_MethodID_4: jmethodID?
open class func getMimeEncoder( lineLength: Int, lineSeparator: [Int8]? ) -> /* class java.util.Base64$Encoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( i: jint(lineLength) )
__args[1] = JNIType.toJava( value: lineSeparator, locals: &__locals )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getMimeEncoder", methodSig: "(I[B)Ljava/util/Base64$Encoder;", methodCache: &getMimeEncoder_MethodID_4, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Encoder */ UnavailableObject( javaObject: __return ) : nil
}
open class func getMimeEncoder( _ _lineLength: Int, _ _lineSeparator: [Int8]? ) -> /* class java.util.Base64$Encoder */ UnavailableObject! {
return getMimeEncoder( lineLength: _lineLength, lineSeparator: _lineSeparator )
}
/// public static java.util.Base64$Encoder java.util.Base64.getMimeEncoder()
private static var getMimeEncoder_MethodID_5: jmethodID?
open class func getMimeEncoder() -> /* class java.util.Base64$Encoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getMimeEncoder", methodSig: "()Ljava/util/Base64$Encoder;", methodCache: &getMimeEncoder_MethodID_5, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Encoder */ UnavailableObject( javaObject: __return ) : nil
}
/// public static java.util.Base64$Decoder java.util.Base64.getUrlDecoder()
private static var getUrlDecoder_MethodID_6: jmethodID?
open class func getUrlDecoder() -> /* class java.util.Base64$Decoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getUrlDecoder", methodSig: "()Ljava/util/Base64$Decoder;", methodCache: &getUrlDecoder_MethodID_6, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Decoder */ UnavailableObject( javaObject: __return ) : nil
}
/// public static java.util.Base64$Encoder java.util.Base64.getUrlEncoder()
private static var getUrlEncoder_MethodID_7: jmethodID?
open class func getUrlEncoder() -> /* class java.util.Base64$Encoder */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/util/Base64", classCache: &Base64JNIClass, methodName: "getUrlEncoder", methodSig: "()Ljava/util/Base64$Encoder;", methodCache: &getUrlEncoder_MethodID_7, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.util.Base64$Encoder */ UnavailableObject( javaObject: __return ) : nil
}
}