Lines Matching defs:output
103 public static ScopedException createFromOutput(String output) {
107 int msgStart = output.indexOf(MSG_KEY);
109 message = output;
111 int fileStart = output.indexOf(FILE_KEY, msgStart + MSG_KEY.length());
113 message = output;
115 message = output.substring(msgStart + MSG_KEY.length(), fileStart);
116 int locStart = output.indexOf(LOCATION_KEY, fileStart + FILE_KEY.length());
118 file = output.substring(fileStart + FILE_KEY.length());
120 file = output.substring(fileStart + FILE_KEY.length(), locStart);
123 nextLoc = output.indexOf(LOCATION_KEY, locStart + LOCATION_KEY.length());
127 output.substring(locStart + LOCATION_KEY.length()));
130 output.substring(locStart + LOCATION_KEY.length(), nextLoc));
144 public static List<ScopedException> extractErrors(String output) {
146 int index = output.indexOf(ERROR_LOG_PREFIX);
147 final int limit = output.length();
149 int end = output.indexOf(ERROR_LOG_SUFFIX, index + ERROR_LOG_PREFIX.length());
151 errors.add(createFromOutput(output.substring(index + ERROR_LOG_PREFIX.length())));
154 errors.add(createFromOutput(output.substring(index + ERROR_LOG_PREFIX.length(),
156 index = output.indexOf(ERROR_LOG_PREFIX, end + ERROR_LOG_SUFFIX.length());