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
41 package java.text;
42
43 import java.util.Locale;
44 import java.util.TimeZone;
45 import java.util.Calendar;
46 import java.util.Date;
47 import java.io.InvalidObjectException;
48
49 @SuppressWarnings({"unchecked", "deprecation", "all"})
50 public abstract class DateFormat extends java.text.Format {
51
DateFormat()52 protected DateFormat() { throw new RuntimeException("Stub!"); }
53
format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)54 public final java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition) { throw new RuntimeException("Stub!"); }
55
format(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)56 public abstract java.lang.StringBuffer format(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition);
57
format(java.util.Date date)58 public final java.lang.String format(java.util.Date date) { throw new RuntimeException("Stub!"); }
59
parse(java.lang.String source)60 public java.util.Date parse(java.lang.String source) throws java.text.ParseException { throw new RuntimeException("Stub!"); }
61
parse(java.lang.String source, java.text.ParsePosition pos)62 public abstract java.util.Date parse(java.lang.String source, java.text.ParsePosition pos);
63
parseObject(java.lang.String source, java.text.ParsePosition pos)64 public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) { throw new RuntimeException("Stub!"); }
65
getTimeInstance()66 public static final java.text.DateFormat getTimeInstance() { throw new RuntimeException("Stub!"); }
67
getTimeInstance(int style)68 public static final java.text.DateFormat getTimeInstance(int style) { throw new RuntimeException("Stub!"); }
69
getTimeInstance(int style, java.util.Locale aLocale)70 public static final java.text.DateFormat getTimeInstance(int style, java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
71
getDateInstance()72 public static final java.text.DateFormat getDateInstance() { throw new RuntimeException("Stub!"); }
73
getDateInstance(int style)74 public static final java.text.DateFormat getDateInstance(int style) { throw new RuntimeException("Stub!"); }
75
getDateInstance(int style, java.util.Locale aLocale)76 public static final java.text.DateFormat getDateInstance(int style, java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
77
getDateTimeInstance()78 public static final java.text.DateFormat getDateTimeInstance() { throw new RuntimeException("Stub!"); }
79
getDateTimeInstance(int dateStyle, int timeStyle)80 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { throw new RuntimeException("Stub!"); }
81
getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale aLocale)82 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
83
getInstance()84 public static final java.text.DateFormat getInstance() { throw new RuntimeException("Stub!"); }
85
86 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
set24HourTimePref(java.lang.Boolean is24Hour)87 public static final void set24HourTimePref(java.lang.Boolean is24Hour) { throw new RuntimeException("Stub!"); }
88
getAvailableLocales()89 public static java.util.Locale[] getAvailableLocales() { throw new RuntimeException("Stub!"); }
90
setCalendar(java.util.Calendar newCalendar)91 public void setCalendar(java.util.Calendar newCalendar) { throw new RuntimeException("Stub!"); }
92
getCalendar()93 public java.util.Calendar getCalendar() { throw new RuntimeException("Stub!"); }
94
setNumberFormat(java.text.NumberFormat newNumberFormat)95 public void setNumberFormat(java.text.NumberFormat newNumberFormat) { throw new RuntimeException("Stub!"); }
96
getNumberFormat()97 public java.text.NumberFormat getNumberFormat() { throw new RuntimeException("Stub!"); }
98
setTimeZone(java.util.TimeZone zone)99 public void setTimeZone(java.util.TimeZone zone) { throw new RuntimeException("Stub!"); }
100
getTimeZone()101 public java.util.TimeZone getTimeZone() { throw new RuntimeException("Stub!"); }
102
setLenient(boolean lenient)103 public void setLenient(boolean lenient) { throw new RuntimeException("Stub!"); }
104
isLenient()105 public boolean isLenient() { throw new RuntimeException("Stub!"); }
106
hashCode()107 public int hashCode() { throw new RuntimeException("Stub!"); }
108
equals(java.lang.Object obj)109 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
110
clone()111 public java.lang.Object clone() { throw new RuntimeException("Stub!"); }
112
113 public static final int AM_PM_FIELD = 14; // 0xe
114
115 public static final int DATE_FIELD = 3; // 0x3
116
117 public static final int DAY_OF_WEEK_FIELD = 9; // 0x9
118
119 public static final int DAY_OF_WEEK_IN_MONTH_FIELD = 11; // 0xb
120
121 public static final int DAY_OF_YEAR_FIELD = 10; // 0xa
122
123 public static final int DEFAULT = 2; // 0x2
124
125 public static final int ERA_FIELD = 0; // 0x0
126
127 public static final int FULL = 0; // 0x0
128
129 public static final int HOUR0_FIELD = 16; // 0x10
130
131 public static final int HOUR1_FIELD = 15; // 0xf
132
133 public static final int HOUR_OF_DAY0_FIELD = 5; // 0x5
134
135 public static final int HOUR_OF_DAY1_FIELD = 4; // 0x4
136
137 public static final int LONG = 1; // 0x1
138
139 public static final int MEDIUM = 2; // 0x2
140
141 public static final int MILLISECOND_FIELD = 8; // 0x8
142
143 public static final int MINUTE_FIELD = 6; // 0x6
144
145 public static final int MONTH_FIELD = 2; // 0x2
146
147 public static final int SECOND_FIELD = 7; // 0x7
148
149 public static final int SHORT = 3; // 0x3
150
151 public static final int TIMEZONE_FIELD = 17; // 0x11
152
153 public static final int WEEK_OF_MONTH_FIELD = 13; // 0xd
154
155 public static final int WEEK_OF_YEAR_FIELD = 12; // 0xc
156
157 public static final int YEAR_FIELD = 1; // 0x1
158
159 protected java.util.Calendar calendar;
160
161 public static java.lang.Boolean is24Hour;
162
163 protected java.text.NumberFormat numberFormat;
164 @SuppressWarnings({"unchecked", "deprecation", "all"})
165 public static class Field extends java.text.Format.Field {
166
Field(java.lang.String name, int calendarField)167 protected Field(java.lang.String name, int calendarField) { super(null); throw new RuntimeException("Stub!"); }
168
ofCalendarField(int calendarField)169 public static java.text.DateFormat.Field ofCalendarField(int calendarField) { throw new RuntimeException("Stub!"); }
170
getCalendarField()171 public int getCalendarField() { throw new RuntimeException("Stub!"); }
172
readResolve()173 protected java.lang.Object readResolve() throws java.io.InvalidObjectException { throw new RuntimeException("Stub!"); }
174
175 public static final java.text.DateFormat.Field AM_PM;
176 static { AM_PM = null; }
177
178 public static final java.text.DateFormat.Field DAY_OF_MONTH;
179 static { DAY_OF_MONTH = null; }
180
181 public static final java.text.DateFormat.Field DAY_OF_WEEK;
182 static { DAY_OF_WEEK = null; }
183
184 public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
185 static { DAY_OF_WEEK_IN_MONTH = null; }
186
187 public static final java.text.DateFormat.Field DAY_OF_YEAR;
188 static { DAY_OF_YEAR = null; }
189
190 public static final java.text.DateFormat.Field ERA;
191 static { ERA = null; }
192
193 public static final java.text.DateFormat.Field HOUR0;
194 static { HOUR0 = null; }
195
196 public static final java.text.DateFormat.Field HOUR1;
197 static { HOUR1 = null; }
198
199 public static final java.text.DateFormat.Field HOUR_OF_DAY0;
200 static { HOUR_OF_DAY0 = null; }
201
202 public static final java.text.DateFormat.Field HOUR_OF_DAY1;
203 static { HOUR_OF_DAY1 = null; }
204
205 public static final java.text.DateFormat.Field MILLISECOND;
206 static { MILLISECOND = null; }
207
208 public static final java.text.DateFormat.Field MINUTE;
209 static { MINUTE = null; }
210
211 public static final java.text.DateFormat.Field MONTH;
212 static { MONTH = null; }
213
214 public static final java.text.DateFormat.Field SECOND;
215 static { SECOND = null; }
216
217 public static final java.text.DateFormat.Field TIME_ZONE;
218 static { TIME_ZONE = null; }
219
220 public static final java.text.DateFormat.Field WEEK_OF_MONTH;
221 static { WEEK_OF_MONTH = null; }
222
223 public static final java.text.DateFormat.Field WEEK_OF_YEAR;
224 static { WEEK_OF_YEAR = null; }
225
226 public static final java.text.DateFormat.Field YEAR;
227 static { YEAR = null; }
228 }
229
230 }
231
232