public class Sql2javaSupport
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.nio.charset.Charset |
ISO_8559_1 |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
formatDate(java.util.Date date,
java.lang.String format)
format
java.util.Datec to string |
static byte[] |
getBytesInBuffer(java.nio.ByteBuffer buffer)
返回buffer中所有字节(position~limit),不改变buffer状态
|
static java.util.Date |
getDateFromString(java.lang.String strDate)
get a date from a date string representation in one of the registered formats
|
static boolean |
isDate(java.lang.String strDate)
Verify that the string represantes the date with one of the registered formats
|
static <D extends java.util.Date> |
parseDateString(java.lang.String dateStr,
java.lang.Class<D> targetClass)
get a date from a date string representation in one of the registered formats
|
static java.nio.ByteBuffer |
toByteBuffer(java.lang.String input) |
static java.lang.String |
toISO8601String(java.util.Date date)
convert
java.util.Datec to ISO8601 date time format string |
static java.lang.String |
toString(java.nio.ByteBuffer newVal) |
public static final byte[] getBytesInBuffer(java.nio.ByteBuffer buffer)
buffer - public static java.nio.ByteBuffer toByteBuffer(java.lang.String input)
public static java.lang.String toString(java.nio.ByteBuffer newVal)
public static java.util.Date getDateFromString(java.lang.String strDate)
strDate - the date as string.public static <D extends java.util.Date> D parseDateString(java.lang.String dateStr,
java.lang.Class<D> targetClass)
dateStr - the date as string.targetClass - public static java.lang.String toISO8601String(java.util.Date date)
java.util.Datec to ISO8601 date time format stringdate - public static java.lang.String formatDate(java.util.Date date,
java.lang.String format)
java.util.Datec to stringdate - format - date time format string,use ISO8601 format if nullpublic static boolean isDate(java.lang.String strDate)
strDate - the date as string.Copyright © 2022. All Rights Reserved.