Skip to content

Commit

Permalink
Make the encoding argument for a genericReader to be null to enable
Browse files Browse the repository at this point in the history
autodetection (on JVM targets)
  • Loading branch information
pdvrieze committed May 3, 2024
1 parent 9ca660b commit 48defd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/base/api/base.api
Expand Up @@ -635,6 +635,7 @@ public final class nl/adaptivity/xmlutil/XmlStreaming : nl/adaptivity/xmlutil/co
public fun newGenericReader (Ljava/io/Reader;)Lnl/adaptivity/xmlutil/XmlReader;
public fun newGenericReader (Ljava/lang/CharSequence;)Lnl/adaptivity/xmlutil/XmlReader;
public final fun newGenericReader (Ljava/lang/String;)Lnl/adaptivity/xmlutil/XmlReader;
public static synthetic fun newGenericReader$default (Lnl/adaptivity/xmlutil/XmlStreaming;Ljava/io/InputStream;Ljava/lang/String;ILjava/lang/Object;)Lnl/adaptivity/xmlutil/XmlReader;
public final fun newGenericWriter (Ljava/lang/Appendable;ZLnl/adaptivity/xmlutil/XmlDeclMode;)Lnl/adaptivity/xmlutil/core/KtXmlWriter;
public static synthetic fun newGenericWriter$default (Lnl/adaptivity/xmlutil/XmlStreaming;Ljava/lang/Appendable;ZLnl/adaptivity/xmlutil/XmlDeclMode;ILjava/lang/Object;)Lnl/adaptivity/xmlutil/core/KtXmlWriter;
public fun newReader (Ljava/io/InputStream;Ljava/lang/String;)Lnl/adaptivity/xmlutil/XmlReader;
Expand Down
Expand Up @@ -188,7 +188,7 @@ public actual object XmlStreaming : XmlStreamingJavaCommon(), IXmlStreaming {
public fun newGenericReader(input: String): XmlReader =
newGenericReader(StringReader(input))

public fun newGenericReader(inputStream: InputStream, encoding: String?): XmlReader =
public fun newGenericReader(inputStream: InputStream, encoding: String? = null): XmlReader =
KtXmlReader(inputStream, encoding)

public override fun newGenericReader(reader: Reader): XmlReader = KtXmlReader(reader)
Expand Down

0 comments on commit 48defd6

Please sign in to comment.