backlog4j.xmlrpc.writer.DoubleWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backlog4j Show documentation
Show all versions of backlog4j Show documentation
A Java library for Backlog API
package backlog4j.xmlrpc.writer;
import java.io.IOException;
/**
* @author eguchi
*/
public final class DoubleWriter extends ObjectWriter {
private static final String NAME = "double";
private static final DoubleWriter INSTANCE = new DoubleWriter();
private DoubleWriter() {
}
public static DoubleWriter getInstance() {
return INSTANCE;
}
public void write(XmlRpcRequestWriter writer, Object value) throws IOException {
if (value == null) {
writer.write(NAME, "");
} else {
String text = value.toString();
writer.write(NAME, text);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy