class RGroupQueryReader extends DefaultChemObjectReader {

    @Override
    public boolean accepts(Class<? extends IChemObject> classObject) {
        Class<?>[] interfaces = classObject.getInterfaces();
        for (Class<?> anInterface : interfaces) {
            if (IRGroupQuery.class.equals(anInterface)) return true;
        }
        Class superClass = classObject.getSuperclass();
        if (superClass != null) return this.accepts(superClass);
        return false;
    }

    public  RGroupQueryReader();
    public  RGroupQueryReader(InputStream in);
    public  RGroupQueryReader(Reader in);

}