Skip to content

Commit 4f18e89

Browse files
feat(#215): Add "since" tags for constructors
1 parent d95c40c commit 4f18e89

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/com/jcabi/xml/SaxonDocument.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public final class SaxonDocument implements XML {
8888
/**
8989
* Public constructor from XML as string text.
9090
* @param text XML document body.
91+
* @since 0.28.0
9192
*/
9293
public SaxonDocument(final String text) {
9394
this(SaxonDocument.node(text));
@@ -96,6 +97,7 @@ public SaxonDocument(final String text) {
9697
/**
9798
* Public constructor from XML as byte array.
9899
* @param data XML document body as byte array.
100+
* @since 0.28.1
99101
*/
100102
public SaxonDocument(final byte[] data) {
101103
this(SaxonDocument.node(new String(data, StandardCharsets.UTF_8)));
@@ -104,6 +106,7 @@ public SaxonDocument(final byte[] data) {
104106
/**
105107
* Public constructor from XML saved in a filesystem.
106108
* @param path Path to XML file in a filesystem.
109+
* @since 0.28.1
107110
*/
108111
public SaxonDocument(final Path path) {
109112
this(path.toFile());
@@ -112,6 +115,7 @@ public SaxonDocument(final Path path) {
112115
/**
113116
* Public constructor from XML saved in a filesystem.
114117
* @param file XML file in a filesystem.
118+
* @since 0.28.1
115119
*/
116120
public SaxonDocument(final File file) {
117121
this(SaxonDocument.node(new StreamSource(file)));
@@ -121,6 +125,7 @@ public SaxonDocument(final File file) {
121125
* Public constructor from XML reached by URL.
122126
* @param url URL of XML document.
123127
* @throws IOException If fails.
128+
* @since 0.28.1
124129
*/
125130
public SaxonDocument(final URL url) throws IOException {
126131
this(SaxonDocument.node(new TextResource(url).toString()));
@@ -130,6 +135,7 @@ public SaxonDocument(final URL url) throws IOException {
130135
* Public constructor from XML reached by URI.
131136
* @param uri URI of XML document.
132137
* @throws IOException If fails.
138+
* @since 0.28.1
133139
*/
134140
public SaxonDocument(final URI uri) throws IOException {
135141
this(SaxonDocument.node(new TextResource(uri).toString()));
@@ -138,6 +144,7 @@ public SaxonDocument(final URI uri) throws IOException {
138144
/**
139145
* Public constructor from XML as input stream.
140146
* @param stream Input stream with XML document.
147+
* @since 0.28.1
141148
*/
142149
public SaxonDocument(final InputStream stream) {
143150
this(SaxonDocument.node(new StreamSource(stream)));
@@ -146,6 +153,7 @@ public SaxonDocument(final InputStream stream) {
146153
/**
147154
* Public constructor from Saxon XML document node.
148155
* @param xml Saxon XML document node.
156+
* @since 0.28.0
149157
*/
150158
public SaxonDocument(final XdmNode xml) {
151159
this.xdm = xml;

0 commit comments

Comments
 (0)