All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.api.sdk.utils.ReaderFactory Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package com.ksyun.api.sdk.utils;

import com.ksyun.api.sdk.http.FormatType;

public class ReaderFactory {
	public static Reader createInstance(FormatType format) {
		if (FormatType.JSON == format)
			return new JsonReader();
		if (FormatType.XML == format)
			return new XmlReader();
		
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy