Package com.franciscocalaca.util
Class UtilTexto
java.lang.Object
com.franciscocalaca.util.UtilTexto
Utilidades gerais para trabalhos com texto
- Author:
- chico
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcompletarEspacoBranco(String texto, int tamanhoTotal, boolean formatarEsquerda) static StringcompletarStringEsquerda(char c, int tamanhoTotal, String texto) static StringformatarComMascara(String mascaraFormatar, String textoFormatar, boolean retornaVazio) static StringgetMetodoGet(String atributo) static StringgetMetodoSet(String atributo) static StringremoverAcentos(String texto) static StringremoverAspas(String texto) static StringremoverAspasInicioFinal(String texto) static StringremoverCaracter(String texto, char... caracteresRemover) static Stringstatic StringremoverCaracteresRegex(String regexPattern, String texto) static StringremoverEspacosDuplos(String texto) static StringsubstituirCaracteres(String texto, char[] caracteres, String substituirPor) static StringtruncarTamanhoMaximo(String texto, int tamanho)
-
Constructor Details
-
UtilTexto
public UtilTexto()
-
-
Method Details
-
removerCaracter
-
substituirCaracteres
-
removerAspas
-
getMetodoGet
-
getMetodoSet
-
completarEspacoBranco
-
removerAspasInicioFinal
-
completarStringEsquerda
-
removerAcentos
-
removerCaracteresNaoAlfaNumericos
-
truncarTamanhoMaximo
-
formatarComMascara
-
removerEspacosDuplos
-
removerCaracteresRegex
-