}
public SVNFichero getFichero(String rutaFichero, long revision) throws Exception {
controlador.getLogger().log("=> "+repositorio.getRepositoryPath("")+" getFichero(" + rutaFichero + ",revision:" + revision +")");
File fd = UtilFichero.crearFicheroTemporalParaRevision(rutaFichero, (revision != -1 ? "_" + revision + "_" : "_HEAD_"));
SVNFichero fichero = new SVNFichero(fd.getAbsolutePath());
FileOutputStream baos = new FileOutputStream(fd);
HashMap hm = new HashMap();
SVNNodeKind nodeKind = repositorio.checkPath( rutaFichero , revision );
repositorio.getFile(rutaFichero, revision, hm, baos);
/*
* Here the SVNProperty class is used to get the value of the
* svn:mime-type property (if any). SVNProperty is used to facilitate
* the work with versioned properties.
*/
String mimeType = (String) hm.get(SVNProperty.MIME_TYPE);
fichero.setMimeType( mimeType );
//EL FICHERO PUEDE SER TRATADO COMO TEXTO.
fichero.setTipoTexto(SVNProperty.isTextMimeType(mimeType));
Iterator iterator = hm.keySet().iterator();
while (iterator.hasNext()) {
String propertyName = (String) iterator.next();
String propertyValue = (String) hm.get(propertyName);