Package slash.common.io
Class Transfer
java.lang.Object
slash.common.io.Transfer
Provides value transfer functionality.
- Author:
- Christian Pesch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleceilFraction(double number, int fractionCount) static intceiling(int dividend, int divisor, boolean roundUpToAtLeastOne) static Stringstatic StringencodeFileName(String name) static StringencodeUmlauts(String string) static Stringstatic Stringstatic Stringstatic Stringstatic booleanformatBoolean(Boolean aBoolean) static DoubleformatDouble(BigDecimal aBigDecimal) static StringformatDoubleAsString(Double aDouble) static StringformatDoubleAsString(Double aDouble, int exactFractionCount) static StringformatDuration(long milliseconds) static FloatformatFloat(Double aDouble) static BigIntegerstatic IntegerformatInt(BigInteger aBigInteger) static StringformatIntAsString(Integer anInteger) static StringformatIntAsString(Integer anInteger, int exactDigitCount) static StringformatLongAsString(Long aLong) static StringformatShortAsString(Short aShort) static StringformatSize(Long size) static StringformatTime(CompactCalendar time) static XMLGregorianCalendarformatXMLTime(CompactCalendar time) static XMLGregorianCalendarformatXMLTime(CompactCalendar time, boolean reduceTimeToSecondPrecision) static DateTimeParserFormattergetDateFormat(String timeZonePreference) static DateTimeParserFormattergetDateTimeFormat(String timeZonePreference) static DateTimeParserFormattergetTimeFormat(String timeZonePreference) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisEmpty(BigDecimal bigDecimal) static booleanisIsoLatin1ButReadWithUtf8(String string) static DoubleparseDouble(String string) static DoubleparseDouble(String string, boolean throwNumberFormatException) static intstatic IntegerparseInteger(String string) static Longstatic ShortparseShort(String string) static CompactCalendarparseXMLTime(XMLGregorianCalendar calendar) static doubleroundFraction(double number, int fractionCount) static doubleroundMeterToMillimeterPrecision(double number) static longroundMillisecondsToSecondPrecision(long number) static StringstripNonValidXMLCharacters(String string) static Integer[]toArray(int[] ints) static int[]static doublestatic doublestatic StringtoLettersAndNumbers(String string) static StringtoLettersAndNumbersAndSpaces(String string) static StringtoMixedCase(String string) static Stringstatic Stringstatic StringtrimLineFeeds(String string) static intwidthInDigits(long number)
-
Field Details
-
ISO_LATIN1_ENCODING
- See Also:
-
UTF8_ENCODING
- See Also:
-
UTF16_ENCODING
- See Also:
-
UTF16LE_ENCODING
- See Also:
-
-
Method Details
-
roundFraction
public static double roundFraction(double number, int fractionCount) -
ceilFraction
public static double ceilFraction(double number, int fractionCount) -
roundMeterToMillimeterPrecision
public static double roundMeterToMillimeterPrecision(double number) -
roundMillisecondsToSecondPrecision
public static long roundMillisecondsToSecondPrecision(long number) -
ceiling
public static int ceiling(int dividend, int divisor, boolean roundUpToAtLeastOne) -
widthInDigits
public static int widthInDigits(long number) -
trim
-
trim
-
trimLineFeeds
-
toLettersAndNumbers
-
toLettersAndNumbersAndSpaces
-
toMixedCase
-
escape
-
escape
-
isIsoLatin1ButReadWithUtf8
-
formatDouble
-
formatInt
-
formatBoolean
-
formatDoubleAsString
-
formatDoubleAsString
-
formatIntAsString
-
formatIntAsString
-
formatInt
-
formatFloat
-
formatLongAsString
-
formatShortAsString
-
parseDouble
-
parseDouble
-
formatDuration
-
parseInteger
-
parseInt
-
parseLong
-
parseShort
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
toDouble
-
toDouble
-
toArray
-
toArray
-
encodeUri
-
encodeUmlauts
-
encodeUriButKeepSlashes
-
decodeUri
-
encodeFileName
-
getDateTimeFormat
-
getDateFormat
-
getTimeFormat
-
parseXMLTime
-
formatXMLTime
-
formatXMLTime
public static XMLGregorianCalendar formatXMLTime(CompactCalendar time, boolean reduceTimeToSecondPrecision) -
stripNonValidXMLCharacters
-
formatSize
-
formatTime
-