Entonces procedo a leerlo mediante un buffer
FileInputStream in = new FileInputStream( "archivoMuyGrande.map");
int BUF_LEN = 65536;
byte[] buf = new byte[BUF_LEN];
int bytesRead = -1;
while((bytesRead = in.read(buf, 0, BUF_LEN)) > -1) {
String entry = new String(buf);
System.out.print(entry);
}
0 comentarios:
Publicar un comentario