2015-02-20 07:59:38 +00:00
|
|
|
/* HBOutputFileWriter.h $
|
|
|
|
|
|
|
|
This file is part of the HandBrake source code.
|
|
|
|
Homepage: <http://handbrake.fr/>.
|
|
|
|
It may be used under the terms of the GNU General Public License. */
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2019-08-11 09:07:20 +02:00
|
|
|
#import "HBRedirect.h"
|
2015-02-20 07:59:38 +00:00
|
|
|
|
2015-07-03 18:57:44 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2015-02-20 07:59:38 +00:00
|
|
|
/**
|
|
|
|
* This class is used to listen to HBOutputRedirect
|
|
|
|
* and write the output to a file.
|
|
|
|
*/
|
|
|
|
@interface HBOutputFileWriter : NSObject <HBOutputRedirectListening>
|
|
|
|
|
2015-07-03 18:57:44 +00:00
|
|
|
- (nullable instancetype)initWithFileURL:(NSURL *)url;
|
2015-02-20 07:59:38 +00:00
|
|
|
|
|
|
|
- (void)write:(NSString *)text;
|
|
|
|
- (void)clear;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NSURL *url;
|
|
|
|
|
|
|
|
@end
|
2015-07-03 18:57:44 +00:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|