converter/src/app/converter/quotedprintableencoder.ts

21 lines
513 B
TypeScript
Raw Normal View History

2017-04-15 19:04:49 +02:00
import {Converter} from './converter';
import {NativeLibraryWrapperService} from '../nativelibrarywrapper.service';
2016-09-20 22:02:38 +02:00
export class QuotedPrintableEncoder implements Converter {
2017-03-15 00:09:57 +01:00
constructor(private nativeLibraryWrapperService: NativeLibraryWrapperService) {
}
2016-09-20 22:02:38 +02:00
getDisplayname(): string {
2017-04-15 19:04:49 +02:00
return 'Encode quoted printable';
}
2016-09-20 22:02:38 +02:00
getId(): string {
2017-04-15 19:04:49 +02:00
return 'encodequotedprintable';
}
2016-09-20 22:02:38 +02:00
convert(input: string): string {
return this.nativeLibraryWrapperService.quotedPrintable.encode(input);
}
2016-09-20 22:02:38 +02:00
}