public static List parse(InputStream is, String template, List values) throws SVNException { List readItems = readTuple(is, DEFAULT_TEMPLATE); String word = getString(readItems, 0); List list = getItemList(readItems, 1); if ("success".equals(word)) { return parseTuple(template, list, values); } else if ("failure".equals(word)) { handleFailureStatus(list); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Unknown status ''{0}'' in command response", word); SVNErrorManager.error(err, SVNLogType.NETWORK); } return null; }
public static List parse(InputStream is, String template, List values) throws SVNException { List readItems = readTuple(is, DEFAULT_TEMPLATE); String word = getString(readItems, 0); List list = getItemList(readItems, 1); if ("success".equals(word)) { return parseTuple(template, list, values); } else if ("failure".equals(word)) { handleFailureStatus(list); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Unknown status ''{0}'' in command response", word); SVNErrorManager.error(err, SVNLogType.NETWORK); } return null; }
public static List parse(InputStream is, String template, List values) throws SVNException { List readItems = readTuple(is, DEFAULT_TEMPLATE); String word = getString(readItems, 0); List list = getItemList(readItems, 1); if ("success".equals(word)) { return parseTuple(template, list, values); } else if ("failure".equals(word)) { handleFailureStatus(list); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Unknown status ''{0}'' in command response", word); SVNErrorManager.error(err, SVNLogType.NETWORK); } return null; }
public List readTuple(String template, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readTuple(getInputStream(), template); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
public List readTuple(String template, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readTuple(getInputStream(), template); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
public List readTuple(String template, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readTuple(getInputStream(), template); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }