@Test void testWriteNonRootNode() throws IOException { final ConfigurationNode source = BasicConfigurationNode.root(n -> { n.getNode("GriefPrevention", "claim-name", "text") .setValue("§4§9The §4T§6h§ea§2r§9o§5w §4Estate"); }); final StringWriter writer = new StringWriter(); final GsonConfigurationLoader gsonLoader = GsonConfigurationLoader.builder() .setIndent(0) .setSink(() -> new BufferedWriter(writer)) .setHeaderMode(HeaderMode.NONE) .build(); gsonLoader.save(source.getNode("GriefPrevention", "claim-name")); assertEquals("{\"text\":\"§4§9The §4T§6h§ea§2r§9o§5w §4Estate\"}", writer.toString().trim()); }
@NonNull public static Builder builder() { return new Builder(); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); @NonNull static Builder builder(); @Override BasicConfigurationNode createNode(ConfigurationOptions options); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); @NonNull static Builder builder(); @Override BasicConfigurationNode createNode(ConfigurationOptions options);  }