{
if (from == null)
{
- throw new Error(
- MessageManager
- .getString("error.implementation_error_null_fileparse"));
+ throw new Error(MessageManager
+ .getString("error.implementation_error_null_fileparse"));
}
if (from == this)
{
private BufferedReader tryAsGzipSource(InputStream inputStream)
throws Exception
{
- BufferedReader inData = new BufferedReader(new InputStreamReader(
- new GZIPInputStream(inputStream)));
+ BufferedReader inData = new BufferedReader(
+ new InputStreamReader(new GZIPInputStream(inputStream)));
inData.mark(2048);
inData.read();
inData.reset();
return inData;
}
- private boolean checkURLSource(String fileStr) throws IOException,
- MalformedURLException
+ private boolean checkURLSource(String fileStr)
+ throws IOException, MalformedURLException
{
errormessage = "URL NOT FOUND";
URL url = new URL(fileStr);
{
if (e != null)
{
- throw new IOException(
- MessageManager
- .getString("exception.failed_to_resolve_gzip_stream"),
- e);
+ throw new IOException(MessageManager
+ .getString("exception.failed_to_resolve_gzip_stream"), e);
}
throw q;
}
{
throw new IOException(MessageManager.formatMessage(
"exception.problem_opening_file_also_tried",
- new String[] { inFile.getName(), suffixLess,
- errormessage }));
+ new String[]
+ { inFile.getName(), suffixLess, errormessage }));
}
}
else
{
throw new IOException(MessageManager.formatMessage(
- "exception.problem_opening_file",
- new String[] { inFile.getName(), errormessage }));
+ "exception.problem_opening_file", new String[]
+ { inFile.getName(), errormessage }));
}
}
}
{
// pass up the reason why we have no source to read from
throw new IOException(MessageManager.formatMessage(
- "exception.failed_to_read_data_from_source",
- new String[] { errormessage }));
+ "exception.failed_to_read_data_from_source", new String[]
+ { errormessage }));
}
error = false;
dataIn.mark(READAHEAD_LIMIT);
{
return dataIn.readLine();
}
- throw new IOException(MessageManager.formatMessage(
- "exception.invalid_source_stream",
- new String[] { errormessage }));
+ throw new IOException(MessageManager
+ .formatMessage("exception.invalid_source_stream", new String[]
+ { errormessage }));
}
/**
}
else
{
- throw new IOException(
- MessageManager
- .getString("error.implementation_error_reset_called_for_invalid_source"));
+ throw new IOException(MessageManager.getString(
+ "error.implementation_error_reset_called_for_invalid_source"));
}
}