org.odata4j.internal
Class InternalUtil

java.lang.Object
  extended by org.odata4j.internal.InternalUtil

public class InternalUtil
extends Object


Field Summary
static int COPY_BUFFER_SIZE
           
 
Constructor Summary
InternalUtil()
           
 
Method Summary
static void copyInputToOutput(InputStream inStream, OutputStream outStream)
           
static String formatDateTimeForJson(LocalDateTime localDateTime)
           
static String formatDateTimeForXml(LocalDateTime localDateTime)
           
static String formatDateTimeOffsetForJson(DateTime dateTime)
           
static String formatDateTimeOffsetForXml(DateTime dateTime)
           
static String formatTimeForJson(LocalTime localTime)
           
static String formatTimeForXml(LocalTime localTime)
           
static ODataVersion getDataServiceVersion(String headerValue)
           
static String getEntityRelId(EdmEntitySet entitySet, OEntityKey entityKey)
           
static String getEntityRelId(List<String> keyPropertyNames, List<OProperty<?>> entityProperties, String entitySetName)
           
static String getEntityRelId(OEntity oe)
           
static LocalDateTime parseDateTimeFromJson(String value)
           
static LocalDateTime parseDateTimeFromXml(String value)
           
static DateTime parseDateTimeOffsetFromJson(String value)
           
static DateTime parseDateTimeOffsetFromXml(String value)
           
static LocalTime parseTime(String value)
           
static String reflectionToString(Object obj)
           
static void sleep(long millis)
           
static
<T> T
toEntity(Class<T> entityType, OEntity oe)
           
static
<T> T
toPojo(Class<T> pojoClass, OEntity oe)
           
static String toString(DateTime utc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_BUFFER_SIZE

public static final int COPY_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

InternalUtil

public InternalUtil()
Method Detail

copyInputToOutput

public static void copyInputToOutput(InputStream inStream,
                                     OutputStream outStream)
                              throws IOException
Throws:
IOException

formatDateTimeForJson

public static String formatDateTimeForJson(LocalDateTime localDateTime)

formatDateTimeForXml

public static String formatDateTimeForXml(LocalDateTime localDateTime)

formatDateTimeOffsetForJson

public static String formatDateTimeOffsetForJson(DateTime dateTime)

formatDateTimeOffsetForXml

public static String formatDateTimeOffsetForXml(DateTime dateTime)

formatTimeForJson

public static String formatTimeForJson(LocalTime localTime)

formatTimeForXml

public static String formatTimeForXml(LocalTime localTime)

getDataServiceVersion

public static ODataVersion getDataServiceVersion(String headerValue)

getEntityRelId

public static String getEntityRelId(EdmEntitySet entitySet,
                                    OEntityKey entityKey)

getEntityRelId

public static String getEntityRelId(List<String> keyPropertyNames,
                                    List<OProperty<?>> entityProperties,
                                    String entitySetName)

getEntityRelId

public static String getEntityRelId(OEntity oe)

parseDateTimeFromJson

public static LocalDateTime parseDateTimeFromJson(String value)

parseDateTimeFromXml

public static LocalDateTime parseDateTimeFromXml(String value)

parseDateTimeOffsetFromJson

public static DateTime parseDateTimeOffsetFromJson(String value)

parseDateTimeOffsetFromXml

public static DateTime parseDateTimeOffsetFromXml(String value)

parseTime

public static LocalTime parseTime(String value)

reflectionToString

public static String reflectionToString(Object obj)

sleep

public static void sleep(long millis)

toEntity

public static <T> T toEntity(Class<T> entityType,
                             OEntity oe)

toPojo

public static <T> T toPojo(Class<T> pojoClass,
                           OEntity oe)

toString

public static String toString(DateTime utc)


http://odata4j.org