
com.upokecenter.text.encoders.EncodingReplacement Maven / Gradle / Ivy
package com.upokecenter.text.encoders;
import java.io.*;
import com.upokecenter.util.*;
import com.upokecenter.text.*;
public class EncodingReplacement implements ICharacterEncoding {
private static class Decoder implements ICharacterDecoder {
private int replacement = 0;
public int ReadChar(IByteReader transform) {
if (this.replacement == 0) {
this.replacement = 1;
return -2;
}
return -1;
}
}
public EncodingReplacement () {
}
public ICharacterDecoder GetDecoder() {
return new Decoder();
}
public ICharacterEncoder GetEncoder() {
return new EncodingUtf8().GetEncoder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy