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 <Cocoa/Cocoa.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:(NSFileHandle *)anInput; 20 + (id) newANTLRInputStream:(NSFileHandle *)anInput size:(NSInteger)theSize; 21 + (id) newANTLRInputStream:(NSFileHandle *)anInput encoding:(NSStringEncoding)theEncoding; 22 + (id) newANTLRInputStream:(NSFileHandle *)anInput 23 size:(NSInteger)theSize 24 readBufferSize:(NSInteger)theRBSize 25 encoding:(NSStringEncoding)theEncoding; 26 - (id) init; 27 - (id) initWithInput:(NSFileHandle *)anInput 28 size:(NSInteger)theSize 29 readBufferSize:(NSInteger)theRBSize 30 encoding:(NSStringEncoding)theEncoding; 31 @end 32