Changes since
the last release

com.ebay.sdk.util
Class eBayUtil

java.lang.Object
  extended by com.ebay.sdk.util.eBayUtil

public class eBayUtil
extends java.lang.Object

Contains utilities for eBay API.

Title:

Description:

Copyright: Copyright (c) 2004

Company: eBay Inc.

Version:
1.0
Author:
not attributable

Constructor Summary
eBayUtil()
           
 
Method Summary
static java.lang.String convertInputStreamToString(java.io.InputStream inStrm)
           
static FeeType findFeeByName(FeeType[] fees, java.lang.String feeName)
          Find fees from FeeType array.
static java.util.Date fromAPITimeString(java.lang.String strDate)
          Parse date from eBay API date string.
static java.util.Date fromAPITimeString(java.lang.String strDate, java.lang.String format, java.lang.String timeZone)
           
static java.lang.String getFullPathOfClass(java.lang.Class cls)
           
static java.lang.String intToString(int i)
          Deprecated. use String.valueOf(i)
static boolean isNonZeroString(java.lang.String s)
          Determines if a string length >= 1.
static void sortCategoryArray(CategoryType[] cats, int sortBy, boolean ascending)
          Sorts a category array.
static java.lang.String toAPITimeString(java.util.Date date)
          Converts date to eBay API date string.
static java.lang.String toAPITimeString(java.util.Date date, java.lang.String format, java.lang.String timeZone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

eBayUtil

public eBayUtil()
Method Detail

toAPITimeString

public static java.lang.String toAPITimeString(java.util.Date date,
                                               java.lang.String format,
                                               java.lang.String timeZone)
Parameters:
date - Date
format - String
timeZone - String
Returns:
String

toAPITimeString

public static java.lang.String toAPITimeString(java.util.Date date)
Converts date to eBay API date string.

Parameters:
date - Date
Returns:
String

fromAPITimeString

public static java.util.Date fromAPITimeString(java.lang.String strDate,
                                               java.lang.String format,
                                               java.lang.String timeZone)
                                        throws java.text.ParseException
Parameters:
strDate - String
format - String
timeZone - String
Returns:
Date
Throws:
java.text.ParseException

fromAPITimeString

public static java.util.Date fromAPITimeString(java.lang.String strDate)
                                        throws java.text.ParseException
Parse date from eBay API date string.

Parameters:
strDate - String
Returns:
Date
Throws:
java.text.ParseException

findFeeByName

public static FeeType findFeeByName(FeeType[] fees,
                                    java.lang.String feeName)
Find fees from FeeType array.

Parameters:
fees - FeeType[]
feeName - String
Returns:
FeeType

convertInputStreamToString

public static java.lang.String convertInputStreamToString(java.io.InputStream inStrm)
                                                   throws java.io.IOException
Parameters:
inStrm - InputStream
Returns:
String
Throws:
java.io.IOException

isNonZeroString

public static boolean isNonZeroString(java.lang.String s)
Determines if a string length >= 1.

Parameters:
s - String
Returns:
boolean

intToString

public static java.lang.String intToString(int i)
Deprecated. use String.valueOf(i)

Converts integer to string.

Parameters:
i - int
Returns:
String

sortCategoryArray

public static void sortCategoryArray(CategoryType[] cats,
                                     int sortBy,
                                     boolean ascending)
                              throws java.lang.Exception
Sorts a category array.

Parameters:
cats - CategoryType[]
sortBy - int
ascending - boolean Sorts in ascending order.
Throws:
java.lang.Exception

getFullPathOfClass

public static java.lang.String getFullPathOfClass(java.lang.Class cls)

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.