|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrado.sti.auxiliar.Fichero
public class Fichero
Clase que contiene utilidades para el tratamiento de ficheros.
Constructor Summary | |
---|---|
Fichero()
|
Method Summary | |
---|---|
void |
array2Fichero(byte[] bytes,
java.lang.String fichero)
Método que escribe el contenido de un array de bytes a un fichero. |
byte[] |
fichero2Array(java.lang.String fichero)
Método que lee toda la información de un fichero y la escribe en un array de bytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Fichero()
Method Detail |
---|
public void array2Fichero(byte[] bytes, java.lang.String fichero) throws java.io.IOException
bytes
- Array de bytes a escribir en ficherofichero
- Nombre del fichero
java.io.IOException
public byte[] fichero2Array(java.lang.String fichero) throws java.io.IOException
fichero
- Nombre del fichero que se quiere leer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |