com.aliyuncs.reader.ReaderFactory Maven / Gradle / Ivy
package com.aliyuncs.reader;
import com.aliyuncs.http.FormatType;
@Deprecated
public class ReaderFactory {
public static Reader createInstance(FormatType format) {
if (FormatType.JSON == format) {
return new JsonReader();
}
if (FormatType.XML == format) {
return new XmlReader();
}
throw new IllegalStateException("Server response has a bad format type: " + format);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy