Package com.alibaba.fastjson2.util
Class DateUtils
java.lang.Object
com.alibaba.fastjson2.util.DateUtils
DateUtils provides utility methods for parsing and formatting dates in various formats.
It supports multiple date formats including ISO 8601, RFC formats, and custom patterns.
This class offers functionality for:
- Parsing date strings in various formats to Date objects
- Formatting Date objects to date strings
- Working with different time zones and locales
- Handling special date formats like cookies and HTTP headers
- Converting between different date representations
Example usage:
// Parse a date string
Date date = DateUtils.parseDate("2023-12-25 10:30:45");
// Format a Date object
String formatted = DateUtils.formatDate(new Date(), "yyyy-MM-dd HH:mm:ss");
// Parse with specific format and time zone
Date date2 = DateUtils.parseDate("2023/12/25 10:30:45", "yyyy/MM/dd HH:mm:ss", ZoneId.of("UTC"));
- Since:
- 2.0.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringformat(int year, int month, int dayOfMonth) static Stringformat(int year, int month, int dayOfMonth, int hour, int minute, int second) static Stringformat(int year, int month, int dayOfMonth, DateUtils.DateTimeFormatPattern pattern) static Stringformat(long timeMillis) static Stringformat(long timeMillis, DateUtils.DateTimeFormatPattern pattern) static Stringstatic Stringformat(LocalDateTime ldt, String format) static Stringformat(ZonedDateTime zdt, String format) static Stringstatic Stringstatic StringformatYMD10(int year, int month, int dayOfMonth) static StringformatYMD10(long timeMillis, ZoneId zoneId) static StringformatYMD10(LocalDate date) static StringformatYMD10(Date date) static StringformatYMD8(long timeMillis, ZoneId zoneId) Formats a timestamp in milliseconds to a string in the format "yyyyMMdd".static StringformatYMD8(LocalDate date) static StringformatYMD8(Date date) Formats a Date object to a string in the format "yyyyMMdd".static StringformatYMDHMS19(LocalDate localDate) static Stringstatic Stringstatic StringformatYMDHMS19(Date date) Formats a Date object to a string in the format "yyyy-MM-dd HH:mm:ss".static StringformatYMDHMS19(Date date, ZoneId zoneId) Formats a Date object to a string in the format "yyyy-MM-dd HH:mm:ss".static intgetShanghaiZoneOffsetTotalSeconds(long seconds) static ZoneIdstatic longhms(byte[] bytes, int off) static inthourAfterNoon(char h0, char h1) static booleanstatic booleanisLocalDate(String str) static booleanisLocalTime(String str) static LocalDateTimelocalDateTime(char y0, char y1, char y2, char y3, char m0, char m1, char d0, char d1, char h0, char h1, char i0, char i1, char s0, char s1) static LocalDateTimelocalDateTime(char y0, char y1, char y2, char y3, char m0, char m1, char d0, char d1, char h0, char h1, char i0, char i1, char s0, char s1, char S0, char S1, char S2, char S3, char S4, char S5, char S6, char S7, char S8) static longmillis(LocalDateTime ldt) static longmillis(LocalDateTime ldt, ZoneId zoneId) static longmillis(ZoneId zoneId, int year, int month, int dom, int hour, int minute, int second, int nanoOfSecond) static intmonth(char c0, char c1, char c2) static intnanos(int value, int nanoSize) static DateParses a date string to a Date object using default parsing rules.static DateParses a date string with the specified format to a Date object.static DateParses a date string with the specified format and time zone to a Date object.static DateParses a date string to a Date object using default parsing rules.static DateparseDateYMDHMS19(String str) Parses a date string in the format "yyyy-MM-dd HH:mm:ss" to a Date object.static LocalDateparseLocalDate(byte[] str, int off, int len) static LocalDateparseLocalDate(char[] str, int off, int len) Parses a character array to a LocalDate object using default parsing rules with specified offset and length.static LocalDateparseLocalDate(String str) static LocalDateparseLocalDate10(byte[] str, int off) yyyy-MM-dd yyyy/MM/dd MM/dd/yyyy dd.MM.yyyy yyyy年M月dd日 yyyy年MM月d日 yyyy MMM dstatic LocalDateparseLocalDate10(char[] str, int off) yyyy-MM-dd yyyy/MM/dd MM/dd/yyyy dd.MM.yyyy yyyy年M月dd日 yyyy年MM月d日 yyyy MMM dstatic LocalDateparseLocalDate11(byte[] str, int off) static LocalDateparseLocalDate11(char[] str, int off) yyyy年MM月dd日 yyyy년MM월dd일static LocalDateparseLocalDate8(byte[] str, int off) yyyy-m-d yyyyMMdd d-MMM-yystatic LocalDateparseLocalDate8(char[] str, int off) yyyy-m-d yyyyMMdd d-MMM-yystatic LocalDateparseLocalDate9(byte[] str, int off) yyyy-MM-d yyyy-M-dd dd-MMM-yystatic LocalDateparseLocalDate9(char[] str, int off) yyyy-MM-d yyyy-M-dd dd-MMM-yystatic LocalDateTimeparseLocalDateTime(byte[] str, int off, int len) static LocalDateTimeparseLocalDateTime(char[] str, int off, int len) Parses a character array to a LocalDateTime object using default parsing rules with specified offset and length.static LocalDateTimeparseLocalDateTime(String str) Parses a date string to a LocalDateTime object using default parsing rules.static LocalDateTimeparseLocalDateTime(String str, int off, int len) Parses a date string to a LocalDateTime object using default parsing rules with specified offset and length.static LocalDateTimeparseLocalDateTime12(byte[] str, int off) parseLocalDateTime use format 'yyyyMMddHHmm'static LocalDateTimeparseLocalDateTime12(char[] str, int off) static LocalDateTimeparseLocalDateTime14(byte[] str, int off) yyyyMMddHHmmssstatic LocalDateTimeparseLocalDateTime14(char[] str, int off) yyyyMMddHHmmssstatic LocalDateTimeparseLocalDateTime16(byte[] str, int off) yyyy-MM-ddTHH:mm yyyy-MM-dd HH:mm yyyyMMddTHHmmssZ yyyy-MM-ddTH:m:s yyyy-MM-dd H:m:sstatic LocalDateTimeparseLocalDateTime16(char[] str, int off) yyyy-MM-ddTHH:mm yyyy-MM-dd HH:mm yyyyMMddTHHmmssZ yyyy-MM-ddTH:m:s yyyy-MM-dd H:m:sstatic LocalDateTimeparseLocalDateTime17(byte[] str, int off) yyyy-MM-ddTHH:mmZ yyyy-MM-dd HH:mmZ yyyy-M-dTHH:mm:ss yyyy-M-d HH:mm:ssstatic LocalDateTimeparseLocalDateTime17(char[] str, int off) yyyy-MM-ddTHH:mmZ yyyy-MM-dd HH:mmZ yyyy-M-dTHH:mm:ss yyyy-M-d HH:mm:ssstatic LocalDateTimeparseLocalDateTime18(byte[] str, int off) yyyy-M-ddTHH:mm:ss yyyy-M-dd HH:mm:ss yyyy-MM-dTHH:mm:ss yyyy-MM-d HH:mm:ss yyyy-MM-ddTH:mm:ss yyyy-MM-dd H:mm:ss yyyy-MM-ddTHH:m:ss yyyy-MM-dd HH:m:ss yyyy-MM-ddTHH:mm:s yyyy-MM-dd HH:mm:sstatic LocalDateTimeparseLocalDateTime18(char[] str, int off) yyyy-M-ddTHH:mm:ss yyyy-M-dd HH:mm:ss yyyy-MM-dTHH:mm:ss yyyy-MM-d HH:mm:ss yyyy-MM-ddTH:mm:ss yyyy-MM-dd H:mm:ss yyyy-MM-ddTHH:m:ss yyyy-MM-dd HH:m:ss yyyy-MM-ddTHH:mm:s yyyy-MM-dd HH:mm:sstatic LocalDateTimeparseLocalDateTime19(byte[] str, int off) yyyy-MM-ddTHH:mm:ss yyyy-MM-dd HH:mm:ss yyyy/MM/ddTHH:mm:ss yyyy/MM/dd HH:mm:ssstatic LocalDateTimeparseLocalDateTime19(char[] str, int off) yyyy-MM-ddTHH:mm:ss yyyy-MM-dd HH:mm:ss yyyy/MM/ddTHH:mm:ss yyyy/MM/dd HH:mm:ssstatic LocalDateTimeparseLocalDateTime19(String str, int off) static LocalDateTimeparseLocalDateTime20(byte[] str, int off) static LocalDateTimeparseLocalDateTime20(char[] str, int off) static LocalDateTimeparseLocalDateTime26(byte[] str, int off) static LocalDateTimeparseLocalDateTime26(char[] str, int off) static LocalDateTimeparseLocalDateTime27(byte[] str, int off) static LocalDateTimeparseLocalDateTime27(char[] str, int off) static LocalDateTimeparseLocalDateTime28(byte[] str, int off) static LocalDateTimeparseLocalDateTime28(char[] str, int off) static LocalDateTimeparseLocalDateTime29(byte[] str, int off) static LocalDateTimeparseLocalDateTime29(char[] str, int off) static LocalDateTimeparseLocalDateTimeX(byte[] str, int offset, int len) static LocalDateTimeparseLocalDateTimeX(char[] str, int offset, int len) static LocalTimeparseLocalTime(char c0, char c1, char c2, char c3, char c4, char c5, char c6, char c7) static LocalTimeparseLocalTime10(byte[] str, int off) static LocalTimeparseLocalTime10(char[] str, int off) static LocalTimeparseLocalTime11(byte[] str, int off) static LocalTimeparseLocalTime11(char[] str, int off) static LocalTimeparseLocalTime12(byte[] str, int off) static LocalTimeparseLocalTime12(char[] str, int off) static LocalTimeparseLocalTime15(byte[] str, int off) static LocalTimeparseLocalTime15(char[] str, int off) static LocalTimeparseLocalTime18(byte[] str, int off) static LocalTimeparseLocalTime18(char[] str, int off) static LocalTimeparseLocalTime5(byte[] str, int off) Parses a byte array to a LocalTime object with 5-character format (HH:mm).static LocalTimeparseLocalTime5(char[] str, int off) Parses a character array to a LocalTime object with 5-character format (HH:mm).static LocalTimeparseLocalTime6(byte[] str, int off) Parses a byte array to a LocalTime object with 6-character format (HHmmss).static LocalTimeparseLocalTime6(char[] str, int off) Parses a character array to a LocalTime object with 6-character format (HHmmss).static LocalTimeparseLocalTime7(byte[] str, int off) static LocalTimeparseLocalTime7(char[] str, int off) static LocalTimeparseLocalTime8(byte[] bytes, int off) static LocalTimeparseLocalTime8(char[] bytes, int off) static longparseMillis(byte[] bytes, int off, int len) static longparseMillis(byte[] bytes, int off, int len, Charset charset) static longparseMillis(byte[] chars, int off, int len, Charset charset, ZoneId zoneId) static longparseMillis(char[] bytes, int off, int len) static longparseMillis(char[] chars, int off, int len, ZoneId zoneId) static longparseMillis(String str) Parses a date string to milliseconds since epoch using default parsing rules.static longparseMillis(String str, ZoneId zoneId) Parses a date string to milliseconds since epoch using default parsing rules.static longparseMillis19(byte[] bytes, int off, ZoneId zoneId) static longparseMillis19(char[] bytes, int off, ZoneId zoneId) static longparseMillis19(String str, ZoneId zoneId) static longparseMillisYMDHMS19(String str, ZoneId zoneId) static ZonedDateTimeparseZonedDateTime(byte[] str, int off, int len) static ZonedDateTimeparseZonedDateTime(byte[] str, int off, int len, ZoneId defaultZoneId) static ZonedDateTimeparseZonedDateTime(char[] str, int off, int len) Parses a character array to a ZonedDateTime object using default parsing rules with specified offset and length.static ZonedDateTimeparseZonedDateTime(char[] str, int off, int len, ZoneId defaultZoneId) static ZonedDateTimeparseZonedDateTime(String str) static ZonedDateTimeparseZonedDateTime(String str, ZoneId defaultZoneId) static intreadNanos(byte[] bytes, int len, int offset) static intreadNanos(char[] chars, int len, int offset) static Stringstatic Stringstatic longutcSeconds(int year, int month, int dom, int hour, int minute, int second) static longymd(byte[] bytes, int off) static intyy(byte[] bytes, int off) static ZoneOffsetzoneOffset(byte[] bytes, int start, int len) static ZoneOffsetzoneOffset(char[] bytes, int start, int len)
-
Field Details
-
DEFAULT_ZONE_ID
-
SHANGHAI_ZONE_ID_NAME
- See Also:
-
SHANGHAI_ZONE_ID
-
SHANGHAI_ZONE_RULES
-
OFFSET_8_ZONE_ID_NAME
- See Also:
-
OFFSET_8_ZONE_ID
-
LOCAL_DATE_19700101
-
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
parseDateYMDHMS19
Parses a date string in the format "yyyy-MM-dd HH:mm:ss" to a Date object. Uses the default time zone for parsing.- Parameters:
str- the date string to parse, e.g., "2023-12-25 10:30:45"- Returns:
- the parsed Date object, or null if the input string is null or empty
-
parseDate
Parses a date string with the specified format to a Date object. Uses the default time zone for parsing.- Parameters:
str- the date string to parseformat- the format pattern to use for parsing- Returns:
- the parsed Date object, or null if the input string is null, empty, or "null"
-
parseDate
Parses a date string with the specified format and time zone to a Date object.- Parameters:
str- the date string to parseformat- the format pattern to use for parsingzoneId- the time zone to use for parsing- Returns:
- the parsed Date object, or null if the input string is null, empty, or "null"
-
parseDate
Parses a date string to a Date object using default parsing rules. Uses the default time zone for parsing.- Parameters:
str- the date string to parse- Returns:
- the parsed Date object, or null if the input string is null, empty, or "null"
-
parseDate
Parses a date string to a Date object using default parsing rules. Uses the specified time zone for parsing.- Parameters:
str- the date string to parsezoneId- the time zone to use for parsing- Returns:
- the parsed Date object, or null if the input string is null, empty, or "null"
-
parseMillis
Parses a date string to milliseconds since epoch using default parsing rules. Uses the default time zone for parsing.- Parameters:
str- the date string to parse- Returns:
- the parsed milliseconds since epoch, or 0 if the input string is null
-
parseMillis
Parses a date string to milliseconds since epoch using default parsing rules. Uses the specified time zone for parsing.- Parameters:
str- the date string to parsezoneId- the time zone to use for parsing- Returns:
- the parsed milliseconds since epoch, or 0 if the input string is null
-
parseLocalDateTime
Parses a date string to a LocalDateTime object using default parsing rules.- Parameters:
str- the date string to parse- Returns:
- the parsed LocalDateTime object, or null if the input string is null or empty
-
parseLocalDateTime
Parses a date string to a LocalDateTime object using default parsing rules with specified offset and length.- Parameters:
str- the date string to parseoff- the offset in the string to start parsing fromlen- the length of the substring to parse- Returns:
- the parsed LocalDateTime object, or null if the input string is null or empty
-
parseLocalDateTime
Parses a character array to a LocalDateTime object using default parsing rules with specified offset and length.- Parameters:
str- the character array to parseoff- the offset in the array to start parsing fromlen- the length of the subarray to parse- Returns:
- the parsed LocalDateTime object, or null if the input array is null or empty
-
parseLocalTime5
Parses a byte array to a LocalTime object with 5-character format (HH:mm). Supports formats like "10:30".- Parameters:
str- the byte array to parseoff- the offset in the array to start parsing from- Returns:
- the parsed LocalTime object, or null if the input array is null or too short
-
parseLocalTime5
Parses a character array to a LocalTime object with 5-character format (HH:mm). Supports formats like "10:30".- Parameters:
str- the character array to parseoff- the offset in the array to start parsing from- Returns:
- the parsed LocalTime object, or null if the input array is null or too short
-
parseLocalTime6
Parses a byte array to a LocalTime object with 6-character format (HHmmss). Supports formats like "103045".- Parameters:
str- the byte array to parseoff- the offset in the array to start parsing from- Returns:
- the parsed LocalTime object, or null if the input array is null or too short
-
parseLocalTime6
Parses a character array to a LocalTime object with 6-character format (HHmmss). Supports formats like "103045".- Parameters:
str- the character array to parseoff- the offset in the array to start parsing from- Returns:
- the parsed LocalTime object, or null if the input array is null or too short
-
parseLocalTime7
-
parseLocalTime7
-
parseLocalTime8
-
parseLocalTime8
-
parseLocalTime
public static LocalTime parseLocalTime(char c0, char c1, char c2, char c3, char c4, char c5, char c6, char c7) -
parseLocalTime10
-
parseLocalTime10
-
parseLocalTime11
-
parseLocalTime11
-
parseLocalTime12
-
parseLocalTime12
-
parseLocalTime15
-
parseLocalTime15
-
parseLocalTime18
-
parseLocalTime18
-
parseLocalDateTime
-
parseLocalDate
-
parseLocalDate
-
parseLocalDate
Parses a character array to a LocalDate object using default parsing rules with specified offset and length.- Parameters:
str- the character array to parseoff- the offset in the array to start parsing fromlen- the length of the subarray to parse- Returns:
- the parsed LocalDate object, or null if the input array is null or empty
-
parseMillis
public static long parseMillis(byte[] bytes, int off, int len) -
parseMillis
-
parseMillis
-
parseMillis
public static long parseMillis(char[] bytes, int off, int len) -
parseMillis
-
parseLocalDate8
yyyy-m-d yyyyMMdd d-MMM-yy -
parseLocalDate8
yyyy-m-d yyyyMMdd d-MMM-yy -
parseLocalDate9
yyyy-MM-d yyyy-M-dd dd-MMM-yy -
parseLocalDate9
yyyy-MM-d yyyy-M-dd dd-MMM-yy -
parseLocalDate10
yyyy-MM-dd yyyy/MM/dd MM/dd/yyyy dd.MM.yyyy yyyy年M月dd日 yyyy年MM月d日 yyyy MMM d -
parseLocalDate10
yyyy-MM-dd yyyy/MM/dd MM/dd/yyyy dd.MM.yyyy yyyy年M月dd日 yyyy年MM月d日 yyyy MMM d -
parseLocalDate11
yyyy年MM月dd日 yyyy년MM월dd일 -
parseLocalDate11
-
parseLocalDateTime12
-
parseLocalDateTime12
parseLocalDateTime use format 'yyyyMMddHHmm' -
parseLocalDateTime14
yyyyMMddHHmmss -
parseLocalDateTime14
yyyyMMddHHmmss -
parseLocalDateTime16
yyyy-MM-ddTHH:mm yyyy-MM-dd HH:mm yyyyMMddTHHmmssZ yyyy-MM-ddTH:m:s yyyy-MM-dd H:m:s -
parseLocalDateTime16
yyyy-MM-ddTHH:mm yyyy-MM-dd HH:mm yyyyMMddTHHmmssZ yyyy-MM-ddTH:m:s yyyy-MM-dd H:m:s -
parseLocalDateTime17
yyyy-MM-ddTHH:mmZ yyyy-MM-dd HH:mmZ yyyy-M-dTHH:mm:ss yyyy-M-d HH:mm:ss -
parseLocalDateTime17
yyyy-MM-ddTHH:mmZ yyyy-MM-dd HH:mmZ yyyy-M-dTHH:mm:ss yyyy-M-d HH:mm:ss -
parseLocalDateTime18
yyyy-M-ddTHH:mm:ss yyyy-M-dd HH:mm:ss yyyy-MM-dTHH:mm:ss yyyy-MM-d HH:mm:ss yyyy-MM-ddTH:mm:ss yyyy-MM-dd H:mm:ss yyyy-MM-ddTHH:m:ss yyyy-MM-dd HH:m:ss yyyy-MM-ddTHH:mm:s yyyy-MM-dd HH:mm:s -
parseLocalDateTime18
yyyy-M-ddTHH:mm:ss yyyy-M-dd HH:mm:ss yyyy-MM-dTHH:mm:ss yyyy-MM-d HH:mm:ss yyyy-MM-ddTH:mm:ss yyyy-MM-dd H:mm:ss yyyy-MM-ddTHH:m:ss yyyy-MM-dd HH:m:ss yyyy-MM-ddTHH:mm:s yyyy-MM-dd HH:mm:s -
parseLocalDateTime19
yyyy-MM-ddTHH:mm:ss yyyy-MM-dd HH:mm:ss yyyy/MM/ddTHH:mm:ss yyyy/MM/dd HH:mm:ss -
parseLocalDateTime19
-
parseLocalDateTime19
yyyy-MM-ddTHH:mm:ss yyyy-MM-dd HH:mm:ss yyyy/MM/ddTHH:mm:ss yyyy/MM/dd HH:mm:ss -
parseLocalDateTime20
-
parseLocalDateTime20
-
parseLocalDateTime26
-
parseLocalDateTime26
-
parseLocalDateTime27
-
parseLocalDateTime27
-
parseLocalDateTime28
-
parseLocalDateTime28
-
parseLocalDateTime29
-
parseLocalDateTime29
-
parseLocalDateTimeX
-
parseLocalDateTimeX
-
parseZonedDateTime
-
parseZonedDateTime
-
parseZonedDateTime
-
parseZonedDateTime
Parses a character array to a ZonedDateTime object using default parsing rules with specified offset and length.- Parameters:
str- the character array to parseoff- the offset in the array to start parsing fromlen- the length of the subarray to parse- Returns:
- the parsed ZonedDateTime object, or null if the input array is null or empty
-
parseZonedDateTime
-
parseZonedDateTime
-
getZoneId
-
parseMillisYMDHMS19
-
parseMillis19
-
parseMillis19
-
parseMillis19
-
localDateTime
public static LocalDateTime localDateTime(char y0, char y1, char y2, char y3, char m0, char m1, char d0, char d1, char h0, char h1, char i0, char i1, char s0, char s1) -
localDateTime
public static LocalDateTime localDateTime(char y0, char y1, char y2, char y3, char m0, char m1, char d0, char d1, char h0, char h1, char i0, char i1, char s0, char s1, char S0, char S1, char S2, char S3, char S4, char S5, char S6, char S7, char S8) -
millis
-
millis
-
millis
public static long millis(ZoneId zoneId, int year, int month, int dom, int hour, int minute, int second, int nanoOfSecond) -
utcSeconds
public static long utcSeconds(int year, int month, int dom, int hour, int minute, int second) -
formatYMDHMS19
Formats a Date object to a string in the format "yyyy-MM-dd HH:mm:ss". Uses the system default time zone for formatting.- Parameters:
date- the Date object to format- Returns:
- the formatted date string, e.g., "2023-12-25 10:30:45"
-
formatYMDHMS19
Formats a Date object to a string in the format "yyyy-MM-dd HH:mm:ss". Uses the specified time zone for formatting.- Parameters:
date- the Date object to formatzoneId- the time zone to use for formatting- Returns:
- the formatted date string, e.g., "2023-12-25 10:30:45"
-
formatYMD8
Formats a Date object to a string in the format "yyyyMMdd". Uses the system default time zone for formatting.- Parameters:
date- the Date object to format- Returns:
- the formatted date string, e.g., "20231225"
-
formatYMD8
Formats a timestamp in milliseconds to a string in the format "yyyyMMdd". Uses the specified time zone for formatting.- Parameters:
timeMillis- the timestamp in milliseconds to formatzoneId- the time zone to use for formatting- Returns:
- the formatted date string, e.g., "20231225"
-
formatYMD10
-
formatYMD10
-
formatYMD10
-
formatYMD8
-
formatYMD10
-
format
-
formatYMDHMS19
-
format
-
formatYMDHMS19
-
format
-
formatYMDHMS19
-
format
-
format
-
format
public static String format(int year, int month, int dayOfMonth, DateUtils.DateTimeFormatPattern pattern) -
format
-
format
-
format
-
format
-
toString
-
toString
-
month
public static int month(char c0, char c1, char c2) -
hourAfterNoon
public static int hourAfterNoon(char h0, char h1) -
getShanghaiZoneOffsetTotalSeconds
public static int getShanghaiZoneOffsetTotalSeconds(long seconds) -
isLocalDate
-
isDate
-
isLocalTime
-
readNanos
public static int readNanos(char[] chars, int len, int offset) -
readNanos
public static int readNanos(byte[] bytes, int len, int offset) -
zoneOffset
-
zoneOffset
-
nanos
public static int nanos(int value, int nanoSize) -
hms
public static long hms(byte[] bytes, int off) -
ymd
public static long ymd(byte[] bytes, int off) -
yy
public static int yy(byte[] bytes, int off)
-