2016-09-20 22:02:38 +02:00
|
|
|
import {Converter} from "./converter";
|
2016-09-20 22:34:31 +02:00
|
|
|
import {NativeLibraryWrapperService} from "../nativelibrarywrapper.service";
|
2016-09-20 22:02:38 +02:00
|
|
|
|
|
|
|
export class QuotedPrintableEncoder implements Converter {
|
2016-09-20 22:34:31 +02:00
|
|
|
constructor(private nativeLibraryWrapperService:NativeLibraryWrapperService) {
|
|
|
|
}
|
2016-09-20 22:02:38 +02:00
|
|
|
|
|
|
|
getDisplayname():string {
|
|
|
|
return "Encode quoted printable";
|
|
|
|
}
|
|
|
|
|
|
|
|
getId():string {
|
|
|
|
return "encodequotedprintable";
|
|
|
|
}
|
|
|
|
|
|
|
|
convert(input:string):string {
|
2016-09-28 13:53:05 +02:00
|
|
|
return this.nativeLibraryWrapperService.quotedPrintable.encode(input);
|
2016-09-20 22:02:38 +02:00
|
|
|
}
|
|
|
|
}
|