|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.gob.sunat.tecnologia.receptor.cliente.forms.Util
public class Util
Metodos de uso comun de la aplicacion.
Template
,
Configuration
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
java.io.File |
acuseToXML(AcuseRecibo acuse,
java.lang.String dirRpta)
Contiene el objeto acuse a XML, y lo graba en la ruta dirRpta, utiliza freemaker para generar el archivo. |
static java.lang.String |
bytesToHexString(byte[] bytes)
Convierte un arreglo de bytes a una cadena en valor hexadecimal. |
static java.io.File |
currentDirForDialog(java.lang.String fileName)
Obtiene el CanonicalPath del archivo indicado en fileName |
static java.lang.String |
getTimeNow()
Obtiene la hora actual formateada como hh:mm:ss SSS |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.io.File currentDirForDialog(java.lang.String fileName)
fileName
- String
File
public static java.lang.String getTimeNow()
public static java.lang.String bytesToHexString(byte[] bytes)
bytes
- byte[]
Formatter
public java.io.File acuseToXML(AcuseRecibo acuse, java.lang.String dirRpta) throws java.lang.Exception
acuse
- AcuseRecibodirRpta
- String
java.lang.Exception
FileOutputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |