Skip to content

Commit

Permalink
text of
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed May 16, 2023
1 parent aea104e commit 2950802
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/io/github/eocqrs/kafka/fake/InFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

import com.jcabi.xml.XML;
import com.jcabi.xml.XMLDocument;
import org.cactoos.io.InputStreamOf;
import org.cactoos.io.TeeInput;
import org.cactoos.scalar.LengthOf;
import org.cactoos.text.TextOf;
import org.xembly.Directive;
import org.xembly.Xembler;

Expand Down Expand Up @@ -82,7 +82,11 @@ public InFile(final File file) throws Exception {
public XML xml() throws Exception {
synchronized (this.name) {
return new XMLDocument(
new InputStreamOf(this.name)
new TextOf(
new File(
this.name
)
).asString()
);
}
}
Expand Down

0 comments on commit 2950802

Please sign in to comment.