01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 BEA Systems, Inc.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * jgarms@bea.com - initial API and implementation
10: *
11: *******************************************************************************/package org.eclipse.jdt.apt.core.internal.util;
12:
13: import java.io.IOException;
14: import java.io.InputStreamReader;
15:
16: public class ReaderAnnotationScanner extends AnnotationScanner {
17:
18: private final InputStreamReader _reader;
19:
20: public ReaderAnnotationScanner(final InputStreamReader reader) {
21: _reader = reader;
22: }
23:
24: @Override
25: protected int getNext() throws IOException {
26: return _reader.read();
27: }
28: }
|