Get the encoding of the document content source
()
| 673 | |
| 674 | /** Get the encoding of the document content source */ |
| 675 | @Override |
| 676 | public String getEncoding() { |
| 677 | // we need to make sure we ALWAYS have an encoding |
| 678 | if(encoding == null || encoding.trim().length() == 0) { |
| 679 | // no encoding definded: use the platform default |
| 680 | encoding = java.nio.charset.Charset.forName( |
| 681 | System.getProperty("file.encoding")).name(); |
| 682 | } |
| 683 | return encoding; |
| 684 | } |
| 685 | |
| 686 | /** Set the encoding of the document content source */ |
| 687 | @Optional |
no test coverage detected