本文整理了Java中javax.json.spi.JsonProvider.createWriterFactory()
方法的一些代码示例,展示了JsonProvider.createWriterFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonProvider.createWriterFactory()
方法的具体详情如下:
包路径:javax.json.spi.JsonProvider
类名称:JsonProvider
方法名:createWriterFactory
[英]Creates a writer factory for creating JsonWriter objects. The factory is configured with the specified map of provider specific configuration properties. Provider implementations should ignore any unsupported configuration properties specified in the map.
[中]创建用于创建JsonWriter对象的编写器工厂。工厂使用特定于提供程序的配置属性的指定映射进行配置。提供程序实现应忽略映射中指定的任何不受支持的配置属性。
代码示例来源:origin: wildfly/wildfly
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return provider.createWriterFactory(config);
}
代码示例来源:origin: wildfly/wildfly
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: apache/activemq-artemis
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return provider.createWriterFactory(config);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public JsonWriterFactory createWriterFactory(final Map<String, ?> stringMap) {
return DELEGATE.createWriterFactory(stringMap);
}
代码示例来源:origin: apache/activemq-artemis
@Override
public JsonWriterFactory createWriterFactory(final Map<String, ?> stringMap) {
return DELEGATE.createWriterFactory(stringMap);
}
代码示例来源:origin: apache/activemq-artemis
@Override
public JsonWriterFactory createWriterFactory(final Map<String, ?> stringMap) {
return DELEGATE.createWriterFactory(stringMap);
}
代码示例来源:origin: org.apache.johnzon/johnzon-core
@Override
public JsonWriterFactory createWriterFactory(final Map<String, ?> stringMap) {
return DELEGATE.createWriterFactory(stringMap);
}
代码示例来源:origin: apache/activemq-artemis
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return provider.createWriterFactory(config);
}
代码示例来源:origin: javax/javaee-web-api
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: org.jboss.spec.javax.json/jboss-json-api_1.0_spec
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: org.apache.meecrowave/meecrowave-specs-api
public static JsonWriterFactory createWriterFactory(Map<String, ?> config)
{
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: javax.json/javax.json-api
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: apache/activemq-artemis
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: jakarta.json/jakarta.json-api
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-json_1.1_spec
public static JsonWriterFactory createWriterFactory(Map<String, ?> config)
{
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: javaee/jsonp
/**
* Creates a writer factory for creating {@link JsonWriter} objects.
* The factory is configured with the specified map of provider specific
* configuration properties. Provider implementations should ignore any
* unsupported configuration properties specified in the map.
*
* @param config a map of provider specific properties to configure the
* JSON writers. The map may be empty or null
* @return a JSON writer factory
*/
public static JsonWriterFactory createWriterFactory(Map<String, ?> config) {
return JsonProvider.provider().createWriterFactory(config);
}
代码示例来源:origin: org.hisrc.jsonix/jsonix-schema-compiler
private JTextFile createTextFile(String fileName,
JsonStructure jsonStructure) throws IOException {
Validate.notNull(fileName);
final JTextFile textFile = new JTextFile(fileName);
final StringWriter stringWriter = new StringWriter();
final JsonWriter jsonWriter = provider.createWriterFactory(
Collections.singletonMap(JsonGenerator.PRETTY_PRINTING,
Boolean.TRUE)).createWriter(stringWriter);
jsonWriter.write(jsonStructure);
textFile.setContents(stringWriter.toString());
return textFile;
}
}
内容来源于网络,如有侵权,请联系作者删除!