java-commons/commons-serialize-xml/src/main/java/io/gitlab/jfronny/commons/serialize/xml/wrapper/XmlReader.java

97 lines
1.9 KiB
Java
Raw Normal View History

2024-04-13 20:41:13 +02:00
package io.gitlab.jfronny.commons.serialize.xml.wrapper;
import io.gitlab.jfronny.commons.serialize.SerializeReader;
import io.gitlab.jfronny.commons.serialize.Token;
import io.gitlab.jfronny.commons.serialize.xml.NativeXmlReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Objects;
public class XmlReader extends SerializeReader<IOException, XmlReader> {
private final NativeXmlReader reader;
public XmlReader(NativeXmlReader reader) {
this.reader = Objects.requireNonNull(reader);
}
public XmlReader(Reader source) {
this(new NativeXmlReader(source));
}
@Override
public XmlReader beginArray() throws IOException {
return null;
}
@Override
public XmlReader endArray() throws IOException {
return null;
}
@Override
public XmlReader beginObject() throws IOException {
return null;
}
@Override
public XmlReader endObject() throws IOException {
return null;
}
@Override
public boolean hasNext() throws IOException {
return false;
}
@Override
public Token peek() throws IOException {
return null;
}
@Override
public String nextName() throws IOException {
return "";
}
@Override
public String nextString() throws IOException {
return "";
}
@Override
public boolean nextBoolean() throws IOException {
return false;
}
@Override
public void nextNull() throws IOException {
}
@Override
public Number nextNumber() throws IOException {
return null;
}
@Override
public void skipValue() throws IOException {
}
@Override
public String getPath() {
return "";
}
@Override
public String getPreviousPath() {
return "";
}
@Override
public void close() throws Exception {
}
}