1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 /*
28  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
29  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
30  *
31  *   The original version of this source code and documentation is copyrighted
32  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
33  * materials are provided under terms of a License Agreement between Taligent
34  * and Sun. This technology is protected by multiple US and International
35  * patents. This notice and attribution to Taligent may not be removed.
36  *   Taligent is a registered trademark of Taligent, Inc.
37  *
38  */
39 
40 package java.text;
41 
42 import android.compat.annotation.UnsupportedAppUsage;
43 
44 @SuppressWarnings({"unchecked", "deprecation", "all"})
45 public abstract class DateFormat extends java.text.Format {
46 
DateFormat()47     protected DateFormat() {
48         throw new RuntimeException("Stub!");
49     }
50 
format( java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)51     public final java.lang.StringBuffer format(
52             java.lang.Object obj,
53             java.lang.StringBuffer toAppendTo,
54             java.text.FieldPosition fieldPosition) {
55         throw new RuntimeException("Stub!");
56     }
57 
format( java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)58     public abstract java.lang.StringBuffer format(
59             java.util.Date date,
60             java.lang.StringBuffer toAppendTo,
61             java.text.FieldPosition fieldPosition);
62 
format(java.util.Date date)63     public final java.lang.String format(java.util.Date date) {
64         throw new RuntimeException("Stub!");
65     }
66 
parse(java.lang.String source)67     public java.util.Date parse(java.lang.String source) throws java.text.ParseException {
68         throw new RuntimeException("Stub!");
69     }
70 
parse(java.lang.String source, java.text.ParsePosition pos)71     public abstract java.util.Date parse(java.lang.String source, java.text.ParsePosition pos);
72 
parseObject(java.lang.String source, java.text.ParsePosition pos)73     public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) {
74         throw new RuntimeException("Stub!");
75     }
76 
getTimeInstance()77     public static final java.text.DateFormat getTimeInstance() {
78         throw new RuntimeException("Stub!");
79     }
80 
getTimeInstance(int style)81     public static final java.text.DateFormat getTimeInstance(int style) {
82         throw new RuntimeException("Stub!");
83     }
84 
getTimeInstance(int style, java.util.Locale aLocale)85     public static final java.text.DateFormat getTimeInstance(int style, java.util.Locale aLocale) {
86         throw new RuntimeException("Stub!");
87     }
88 
getDateInstance()89     public static final java.text.DateFormat getDateInstance() {
90         throw new RuntimeException("Stub!");
91     }
92 
getDateInstance(int style)93     public static final java.text.DateFormat getDateInstance(int style) {
94         throw new RuntimeException("Stub!");
95     }
96 
getDateInstance(int style, java.util.Locale aLocale)97     public static final java.text.DateFormat getDateInstance(int style, java.util.Locale aLocale) {
98         throw new RuntimeException("Stub!");
99     }
100 
getDateTimeInstance()101     public static final java.text.DateFormat getDateTimeInstance() {
102         throw new RuntimeException("Stub!");
103     }
104 
getDateTimeInstance(int dateStyle, int timeStyle)105     public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) {
106         throw new RuntimeException("Stub!");
107     }
108 
getDateTimeInstance( int dateStyle, int timeStyle, java.util.Locale aLocale)109     public static final java.text.DateFormat getDateTimeInstance(
110             int dateStyle, int timeStyle, java.util.Locale aLocale) {
111         throw new RuntimeException("Stub!");
112     }
113 
getInstance()114     public static final java.text.DateFormat getInstance() {
115         throw new RuntimeException("Stub!");
116     }
117 
set24HourTimePref(java.lang.Boolean is24Hour)118     public static final void set24HourTimePref(java.lang.Boolean is24Hour) {
119         throw new RuntimeException("Stub!");
120     }
121 
getAvailableLocales()122     public static java.util.Locale[] getAvailableLocales() {
123         throw new RuntimeException("Stub!");
124     }
125 
setCalendar(java.util.Calendar newCalendar)126     public void setCalendar(java.util.Calendar newCalendar) {
127         throw new RuntimeException("Stub!");
128     }
129 
getCalendar()130     public java.util.Calendar getCalendar() {
131         throw new RuntimeException("Stub!");
132     }
133 
setNumberFormat(java.text.NumberFormat newNumberFormat)134     public void setNumberFormat(java.text.NumberFormat newNumberFormat) {
135         throw new RuntimeException("Stub!");
136     }
137 
getNumberFormat()138     public java.text.NumberFormat getNumberFormat() {
139         throw new RuntimeException("Stub!");
140     }
141 
setTimeZone(java.util.TimeZone zone)142     public void setTimeZone(java.util.TimeZone zone) {
143         throw new RuntimeException("Stub!");
144     }
145 
getTimeZone()146     public java.util.TimeZone getTimeZone() {
147         throw new RuntimeException("Stub!");
148     }
149 
setLenient(boolean lenient)150     public void setLenient(boolean lenient) {
151         throw new RuntimeException("Stub!");
152     }
153 
isLenient()154     public boolean isLenient() {
155         throw new RuntimeException("Stub!");
156     }
157 
hashCode()158     public int hashCode() {
159         throw new RuntimeException("Stub!");
160     }
161 
equals(java.lang.Object obj)162     public boolean equals(java.lang.Object obj) {
163         throw new RuntimeException("Stub!");
164     }
165 
clone()166     public java.lang.Object clone() {
167         throw new RuntimeException("Stub!");
168     }
169 
get( int timeStyle, int dateStyle, int flags, java.util.Locale loc)170     private static java.text.DateFormat get(
171             int timeStyle, int dateStyle, int flags, java.util.Locale loc) {
172         throw new RuntimeException("Stub!");
173     }
174 
175     public static final int AM_PM_FIELD = 14; // 0xe
176 
177     public static final int DATE_FIELD = 3; // 0x3
178 
179     public static final int DAY_OF_WEEK_FIELD = 9; // 0x9
180 
181     public static final int DAY_OF_WEEK_IN_MONTH_FIELD = 11; // 0xb
182 
183     public static final int DAY_OF_YEAR_FIELD = 10; // 0xa
184 
185     public static final int DEFAULT = 2; // 0x2
186 
187     public static final int ERA_FIELD = 0; // 0x0
188 
189     public static final int FULL = 0; // 0x0
190 
191     public static final int HOUR0_FIELD = 16; // 0x10
192 
193     public static final int HOUR1_FIELD = 15; // 0xf
194 
195     public static final int HOUR_OF_DAY0_FIELD = 5; // 0x5
196 
197     public static final int HOUR_OF_DAY1_FIELD = 4; // 0x4
198 
199     public static final int LONG = 1; // 0x1
200 
201     public static final int MEDIUM = 2; // 0x2
202 
203     public static final int MILLISECOND_FIELD = 8; // 0x8
204 
205     public static final int MINUTE_FIELD = 6; // 0x6
206 
207     public static final int MONTH_FIELD = 2; // 0x2
208 
209     public static final int SECOND_FIELD = 7; // 0x7
210 
211     public static final int SHORT = 3; // 0x3
212 
213     public static final int TIMEZONE_FIELD = 17; // 0x11
214 
215     public static final int WEEK_OF_MONTH_FIELD = 13; // 0xd
216 
217     public static final int WEEK_OF_YEAR_FIELD = 12; // 0xc
218 
219     public static final int YEAR_FIELD = 1; // 0x1
220 
221     protected java.util.Calendar calendar;
222 
223     @UnsupportedAppUsage
224     public static java.lang.Boolean is24Hour;
225 
226     protected java.text.NumberFormat numberFormat;
227 
228     private static final long serialVersionUID = 7218322306649953788L; // 0x642ca1e4c22615fcL
229 
230     @SuppressWarnings({"unchecked", "deprecation", "all"})
231     public static class Field extends java.text.Format.Field {
232 
Field(java.lang.String name, int calendarField)233         protected Field(java.lang.String name, int calendarField) {
234             super(null);
235             throw new RuntimeException("Stub!");
236         }
237 
ofCalendarField(int calendarField)238         public static java.text.DateFormat.Field ofCalendarField(int calendarField) {
239             throw new RuntimeException("Stub!");
240         }
241 
getCalendarField()242         public int getCalendarField() {
243             throw new RuntimeException("Stub!");
244         }
245 
readResolve()246         protected java.lang.Object readResolve() throws java.io.InvalidObjectException {
247             throw new RuntimeException("Stub!");
248         }
249 
250         public static final java.text.DateFormat.Field AM_PM;
251 
252         static {
253             AM_PM = null;
254         }
255 
256         public static final java.text.DateFormat.Field DAY_OF_MONTH;
257 
258         static {
259             DAY_OF_MONTH = null;
260         }
261 
262         public static final java.text.DateFormat.Field DAY_OF_WEEK;
263 
264         static {
265             DAY_OF_WEEK = null;
266         }
267 
268         public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
269 
270         static {
271             DAY_OF_WEEK_IN_MONTH = null;
272         }
273 
274         public static final java.text.DateFormat.Field DAY_OF_YEAR;
275 
276         static {
277             DAY_OF_YEAR = null;
278         }
279 
280         public static final java.text.DateFormat.Field ERA;
281 
282         static {
283             ERA = null;
284         }
285 
286         public static final java.text.DateFormat.Field HOUR0;
287 
288         static {
289             HOUR0 = null;
290         }
291 
292         public static final java.text.DateFormat.Field HOUR1;
293 
294         static {
295             HOUR1 = null;
296         }
297 
298         public static final java.text.DateFormat.Field HOUR_OF_DAY0;
299 
300         static {
301             HOUR_OF_DAY0 = null;
302         }
303 
304         public static final java.text.DateFormat.Field HOUR_OF_DAY1;
305 
306         static {
307             HOUR_OF_DAY1 = null;
308         }
309 
310         public static final java.text.DateFormat.Field MILLISECOND;
311 
312         static {
313             MILLISECOND = null;
314         }
315 
316         public static final java.text.DateFormat.Field MINUTE;
317 
318         static {
319             MINUTE = null;
320         }
321 
322         public static final java.text.DateFormat.Field MONTH;
323 
324         static {
325             MONTH = null;
326         }
327 
328         public static final java.text.DateFormat.Field SECOND;
329 
330         static {
331             SECOND = null;
332         }
333 
334         public static final java.text.DateFormat.Field TIME_ZONE;
335 
336         static {
337             TIME_ZONE = null;
338         }
339 
340         public static final java.text.DateFormat.Field WEEK_OF_MONTH;
341 
342         static {
343             WEEK_OF_MONTH = null;
344         }
345 
346         public static final java.text.DateFormat.Field WEEK_OF_YEAR;
347 
348         static {
349             WEEK_OF_YEAR = null;
350         }
351 
352         public static final java.text.DateFormat.Field YEAR;
353 
354         static {
355             YEAR = null;
356         }
357 
358         private int calendarField;
359 
360         private static final java.text.DateFormat.Field[] calendarToFieldMapping;
361 
362         static {
363             calendarToFieldMapping = new java.text.DateFormat.Field[0];
364         }
365 
366         private static final java.util.Map<java.lang.String, java.text.DateFormat.Field>
367                 instanceMap;
368 
369         static {
370             instanceMap = null;
371         }
372 
373         private static final long serialVersionUID = 7441350119349544720L; // 0x6744fc81f123e710L
374     }
375 }
376