1 // 2 // ANTLRInputStream.h 3 // ANTLR 4 // 5 // Created by Alan Condit on 2/21/11. 6 // Copyright 2011 Alan's MachineWorks. All rights reserved. 7 // 8 9 #import <Foundation/Foundation.h> 10 #import "AntlrReaderStream.h" 11 12 @interface ANTLRInputStream : ANTLRReaderStream { 13 NSStringEncoding encoding; 14 } 15 16 @property (assign) NSStringEncoding encoding; 17 18 + (id) newANTLRInputStream; 19 + (id) newANTLRInputStream:(NSInputStream *)anInput; 20 + (id) newANTLRInputStream:(NSInputStream *)anInput size:(NSInteger)theSize; 21 + (id) newANTLRInputStream:(NSInputStream *)anInput encoding:(NSStringEncoding)theEncoding; 22 + (id) newANTLRInputStream:(NSInputStream *)anInput 23 size:(NSInteger)theSize 24 readBufferSize:(NSInteger)theRBSize 25 encoding:(NSStringEncoding)theEncoding; 26 - (id) init; 27 - (id) initWithInput:(NSInputStream *)anInput 28 size:(NSInteger)theSize 29 readBufferSize:(NSInteger)theRBSize 30 encoding:(NSStringEncoding)theEncoding; 31 @end 32