public static InputStream openFileForReading(File file) throws SVNException { return openFileForReading(file, Level.FINE, SVNLogType.DEFAULT); }
private InputStream openDeltaBase(FileBaton fileBaton) throws SVNException { return SVNFileUtil.openFileForReading(fileBaton.deltaBase); }
public static InputStream openFileForReading(File file, SVNLogType logType) throws SVNException { return openFileForReading(file, Level.FINE, logType); }
public static InputStream openFileForReading(File file, SVNLogType logType) throws SVNException { return openFileForReading(file, Level.FINE, logType); }
public static InputStream openFileForReading(File file, SVNLogType logType) throws SVNException { return openFileForReading(file, Level.FINE, logType); }
public static InputStream openFileForReading(File file) throws SVNException { return openFileForReading(file, Level.FINE, SVNLogType.DEFAULT); }
public InputStream getBaseFileForReading(String name, boolean tmp) throws SVNException { String path = tmp ? "tmp/" : ""; path += "text-base/" + name + ".svn-base"; File baseFile = getAdminFile(path); return SVNFileUtil.openFileForReading(baseFile); }
public InputStream getBaseFileForReading(String name, boolean tmp) throws SVNException { String path = tmp ? "tmp/" : ""; path += "text-base/" + name + ".svn-base"; File baseFile = getAdminFile(path); return SVNFileUtil.openFileForReading(baseFile, SVNLogType.WC); }
private BufferedReader createReader() throws SVNException { try { return new BufferedReader(new InputStreamReader(SVNFileUtil.openFileForReading(getReportFile()), "UTF-8")); } catch (UnsupportedEncodingException e) { return new BufferedReader(new InputStreamReader(SVNFileUtil.openFileForReading(getReportFile()))); } }
public InputStream getBaseFileForReading(String name, boolean tmp) throws SVNException { String path = tmp ? "tmp/" : ""; path += "text-base/" + name + ".svn-base"; File baseFile = getAdminFile(path); return SVNFileUtil.openFileForReading(baseFile, SVNLogType.WC); }
public static InputStream readPristine(SVNWCDbRoot root, File wcRootAbsPath, SvnChecksum sha1Checksum) throws SVNException { File pristine_abspath = getPristineFileName(root, sha1Checksum, false); return SVNFileUtil.openFileForReading(pristine_abspath); }
public InputStream getBaseFileForReading(String name, boolean tmp) throws SVNException { String path = tmp ? "tmp/" : ""; path += "text-base/" + name + ".svn-base"; File baseFile = getAdminFile(path); return SVNFileUtil.openFileForReading(baseFile, SVNLogType.WC); }
private InputStream getDelegate() throws IOException { if (myDelegate == null) { try { myDelegate = SVNFileUtil.openFileForReading(myFile, SVNLogType.NETWORK); } catch (SVNException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new IOException(e.getMessage()); } } return myDelegate; }
private InputStream getDelegate() throws IOException { if (myDelegate == null) { try { myDelegate = SVNFileUtil.openFileForReading(myFile, SVNLogType.NETWORK); } catch (SVNException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new IOException(e.getMessage()); } } return myDelegate; }
private InputStream getDelegate() throws IOException { if (myDelegate == null) { try { myDelegate = SVNFileUtil.openFileForReading(myFile, SVNLogType.NETWORK); } catch (SVNException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new IOException(e.getMessage()); } } return myDelegate; }
public static String readFile(File file) throws SVNException { InputStream is = null; try { is = openFileForReading(file, SVNLogType.WC); return readFile(is); } catch (IOException ioe) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot read from file ''{0}'': {1}", new Object[] { file, ioe.getMessage() }); SVNErrorManager.error(err, Level.FINE, SVNLogType.WC); } finally { closeFile(is); } return null; }
private void openNextFile() throws IOException { myCurrentFile = (File) myFiles.removeFirst(); SVNDebugLog.getDefaultLog().logFine(SVNLogType.NETWORK, "READING SPOOLED FILE: " + myCurrentFile); myCurrentSize = myCurrentFile.length(); SVNDebugLog.getDefaultLog().logFine(SVNLogType.NETWORK, "ABOUT TO READ: " + myCurrentSize); try { myCurrentInput = SVNFileUtil.openFileForReading(myCurrentFile, SVNLogType.NETWORK); } catch (SVNException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new IOException(e.getMessage()); } }
public void fetchFileContent(OutputStream os) throws SVNException { InputStream is = SVNFileUtil.openFileForReading(path, SVNLogType.WC); try { SVNTranslator.copy(is, os); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.IO_ERROR), SVNLogType.DEFAULT); } finally { SVNFileUtil.closeFile(is); } }
public void fetchFileContent(OutputStream os) throws SVNException { InputStream is = SVNFileUtil.openFileForReading(path, SVNLogType.WC); try { SVNTranslator.copy(is, os); } catch (IOExceptionWrapper ioew) { throw ioew.getOriginalException(); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.IO_ERROR), e, SVNLogType.DEFAULT); } finally { SVNFileUtil.closeFile(is); } }
public void fetchFileContent(OutputStream os) throws SVNException { InputStream is = SVNFileUtil.openFileForReading(path, SVNLogType.WC); try { SVNTranslator.copy(is, os); } catch (IOExceptionWrapper ioew) { throw ioew.getOriginalException(); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.IO_ERROR), e, SVNLogType.DEFAULT); } finally { SVNFileUtil.closeFile(is); } }