|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjfb.tools.activitymgr.core.util.StringHelper
public class StringHelper
Classe offrant des services de manipulation de chaines de caractères.
| Constructor Summary | |
|---|---|
StringHelper()
|
|
| Method Summary | |
|---|---|
static long |
entryToHundredth(java.lang.String entry)
Convertit une saisie utilisateur en centièmes. |
static java.lang.String |
fromInputStream(java.io.InputStream in)
Retourne le contenu d'un flux sous forme d'une chaîne de caractères. |
static java.lang.String[] |
getQueries(java.lang.String script)
Découpe un script pour en extraire les requêtes SQL. |
static java.lang.String |
hundredthToEntry(long hundredth)
Convertit une valeur en centièmes en valeur au format de saisie. |
static byte |
toByte(java.lang.String hex)
Convertit une chaine hexadécimal en octet. |
static java.lang.String |
toHex(byte b)
Convertit un octet en hexadécimal. |
static java.lang.String |
toYYYYMMDD(java.util.Calendar cal)
Convertit une date en chaine de caractère. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringHelper()
| Method Detail |
|---|
public static long entryToHundredth(java.lang.String entry)
throws StringFormatException
entry - l'entrée de l'utilisateur.
StringFormatException - levé en cas de problème de format de la saisie.
public static java.lang.String fromInputStream(java.io.InputStream in)
throws java.io.IOException
in - le flux de lecture.
java.io.IOException - levé en cas d'incident I/O.public static java.lang.String[] getQueries(java.lang.String script)
script - le script à découper.
public static java.lang.String hundredthToEntry(long hundredth)
hundredth - la valeur en centièmes.
public static byte toByte(java.lang.String hex)
hex - la chaine à convertir.
public static java.lang.String toHex(byte b)
b - l'octet à convertir.
public static java.lang.String toYYYYMMDD(java.util.Calendar cal)
cal - la date à convertir.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||