[java] obtenir une partie d'un fichier

Bonjour,

Dans le cadre d'un projet p2p en informatique, j'ai besoin d'une méthode qui me permettrait d'obtenir une "partie"
d'un fichier. Je ne trouve rien pour l'instant...

/**
* Get a portion of a file
* @param fileName
* @param offset
* @param length
* @return
* @throws exceptions.FileDoesNotExist
* @throws exceptions.InvalidFileOffset
*/
public byte[] getFile (String fileName, int offset, int length) throws FileDoesNotExist, InvalidFileOffset {...}

Merci à ceux qui ont une idée..
Configuration: Linux
Firefox 3.0.10

1 réponse

  1. Personne n'a une idée?... :-(...
    0