org.qas.api.transform.StringUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtest-sdk-java Show documentation
Show all versions of qtest-sdk-java Show documentation
A java SDK client wrap qTest REST API
The newest version!
package org.qas.api.transform;
import org.qas.api.internal.util.google.io.CharStreams;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
public class StringUnmarshaller implements Unmarshaller {
@Override
public boolean isParseJson() {
return false;
}
@Override
public String unmarshall(InputStream in) throws Exception {
List lines = CharStreams.readLines(new InputStreamReader(in));
return (lines == null || lines.isEmpty() ? null : lines.iterator().next());
}
@Override
public String parse(String data) throws Exception {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy