77import java .util .Date ;
88
99class CefDownloadItem_N extends CefNativeAdapter implements CefDownloadItem {
10- protected void finalize () throws Throwable {
11- super .finalize ();
12- }
13-
1410 CefDownloadItem_N () {}
1511
1612 @ Override
1713 public boolean isValid () {
1814 try {
19- return N_IsValid ();
15+ return N_IsValid (getNativeRef ( null ) );
2016 } catch (UnsatisfiedLinkError ule ) {
2117 ule .printStackTrace ();
2218 }
@@ -26,7 +22,7 @@ public boolean isValid() {
2622 @ Override
2723 public boolean isInProgress () {
2824 try {
29- return N_IsInProgress ();
25+ return N_IsInProgress (getNativeRef ( null ) );
3026 } catch (UnsatisfiedLinkError ule ) {
3127 ule .printStackTrace ();
3228 }
@@ -36,7 +32,7 @@ public boolean isInProgress() {
3632 @ Override
3733 public boolean isComplete () {
3834 try {
39- return N_IsComplete ();
35+ return N_IsComplete (getNativeRef ( null ) );
4036 } catch (UnsatisfiedLinkError ule ) {
4137 ule .printStackTrace ();
4238 }
@@ -46,7 +42,7 @@ public boolean isComplete() {
4642 @ Override
4743 public boolean isCanceled () {
4844 try {
49- return N_IsCanceled ();
45+ return N_IsCanceled (getNativeRef ( null ) );
5046 } catch (UnsatisfiedLinkError ule ) {
5147 ule .printStackTrace ();
5248 }
@@ -56,7 +52,7 @@ public boolean isCanceled() {
5652 @ Override
5753 public long getCurrentSpeed () {
5854 try {
59- return N_GetCurrentSpeed ();
55+ return N_GetCurrentSpeed (getNativeRef ( null ) );
6056 } catch (UnsatisfiedLinkError ule ) {
6157 ule .printStackTrace ();
6258 }
@@ -66,7 +62,7 @@ public long getCurrentSpeed() {
6662 @ Override
6763 public int getPercentComplete () {
6864 try {
69- return N_GetPercentComplete ();
65+ return N_GetPercentComplete (getNativeRef ( null ) );
7066 } catch (UnsatisfiedLinkError ule ) {
7167 ule .printStackTrace ();
7268 }
@@ -76,7 +72,7 @@ public int getPercentComplete() {
7672 @ Override
7773 public long getTotalBytes () {
7874 try {
79- return N_GetTotalBytes ();
75+ return N_GetTotalBytes (getNativeRef ( null ) );
8076 } catch (UnsatisfiedLinkError ule ) {
8177 ule .printStackTrace ();
8278 }
@@ -86,7 +82,7 @@ public long getTotalBytes() {
8682 @ Override
8783 public long getReceivedBytes () {
8884 try {
89- return N_GetReceivedBytes ();
85+ return N_GetReceivedBytes (getNativeRef ( null ) );
9086 } catch (UnsatisfiedLinkError ule ) {
9187 ule .printStackTrace ();
9288 }
@@ -96,7 +92,7 @@ public long getReceivedBytes() {
9692 @ Override
9793 public Date getStartTime () {
9894 try {
99- return N_GetStartTime ();
95+ return N_GetStartTime (getNativeRef ( null ) );
10096 } catch (UnsatisfiedLinkError ule ) {
10197 ule .printStackTrace ();
10298 }
@@ -106,7 +102,7 @@ public Date getStartTime() {
106102 @ Override
107103 public Date getEndTime () {
108104 try {
109- return N_GetEndTime ();
105+ return N_GetEndTime (getNativeRef ( null ) );
110106 } catch (UnsatisfiedLinkError ule ) {
111107 ule .printStackTrace ();
112108 }
@@ -116,7 +112,7 @@ public Date getEndTime() {
116112 @ Override
117113 public String getFullPath () {
118114 try {
119- return N_GetFullPath ();
115+ return N_GetFullPath (getNativeRef ( null ) );
120116 } catch (UnsatisfiedLinkError ule ) {
121117 ule .printStackTrace ();
122118 }
@@ -126,7 +122,7 @@ public String getFullPath() {
126122 @ Override
127123 public int getId () {
128124 try {
129- return N_GetId ();
125+ return N_GetId (getNativeRef ( null ) );
130126 } catch (UnsatisfiedLinkError ule ) {
131127 ule .printStackTrace ();
132128 }
@@ -136,7 +132,7 @@ public int getId() {
136132 @ Override
137133 public String getURL () {
138134 try {
139- return N_GetURL ();
135+ return N_GetURL (getNativeRef ( null ) );
140136 } catch (UnsatisfiedLinkError ule ) {
141137 ule .printStackTrace ();
142138 }
@@ -146,7 +142,7 @@ public String getURL() {
146142 @ Override
147143 public String getSuggestedFileName () {
148144 try {
149- return N_GetSuggestedFileName ();
145+ return N_GetSuggestedFileName (getNativeRef ( null ) );
150146 } catch (UnsatisfiedLinkError ule ) {
151147 ule .printStackTrace ();
152148 }
@@ -156,7 +152,7 @@ public String getSuggestedFileName() {
156152 @ Override
157153 public String getContentDisposition () {
158154 try {
159- return N_GetContentDisposition ();
155+ return N_GetContentDisposition (getNativeRef ( null ) );
160156 } catch (UnsatisfiedLinkError ule ) {
161157 ule .printStackTrace ();
162158 }
@@ -166,27 +162,27 @@ public String getContentDisposition() {
166162 @ Override
167163 public String getMimeType () {
168164 try {
169- return N_GetMimeType ();
165+ return N_GetMimeType (getNativeRef ( null ) );
170166 } catch (UnsatisfiedLinkError ule ) {
171167 ule .printStackTrace ();
172168 }
173169 return null ;
174170 }
175171
176- private final native boolean N_IsValid ();
177- private final native boolean N_IsInProgress ();
178- private final native boolean N_IsComplete ();
179- private final native boolean N_IsCanceled ();
180- private final native long N_GetCurrentSpeed ();
181- private final native int N_GetPercentComplete ();
182- private final native long N_GetTotalBytes ();
183- private final native long N_GetReceivedBytes ();
184- private final native Date N_GetStartTime ();
185- private final native Date N_GetEndTime ();
186- private final native String N_GetFullPath ();
187- private final native int N_GetId ();
188- private final native String N_GetURL ();
189- private final native String N_GetSuggestedFileName ();
190- private final native String N_GetContentDisposition ();
191- private final native String N_GetMimeType ();
172+ private final native boolean N_IsValid (long self );
173+ private final native boolean N_IsInProgress (long self );
174+ private final native boolean N_IsComplete (long self );
175+ private final native boolean N_IsCanceled (long self );
176+ private final native long N_GetCurrentSpeed (long self );
177+ private final native int N_GetPercentComplete (long self );
178+ private final native long N_GetTotalBytes (long self );
179+ private final native long N_GetReceivedBytes (long self );
180+ private final native Date N_GetStartTime (long self );
181+ private final native Date N_GetEndTime (long self );
182+ private final native String N_GetFullPath (long self );
183+ private final native int N_GetId (long self );
184+ private final native String N_GetURL (long self );
185+ private final native String N_GetSuggestedFileName (long self );
186+ private final native String N_GetContentDisposition (long self );
187+ private final native String N_GetMimeType (long self );
192188}
0 commit comments