int queryLength(final int id) throws IOException { if (mQueryReader == null) { return -1; } else { return mQueryReader.length(id); } }
int templateLength(final int id) throws IOException { if (mTemplateReader == null) { return -1; } else { return mTemplateReader.length(id); } }