Skip to content

Commit

Permalink
Update docs on how to build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo committed Sep 8, 2016
1 parent 73bafea commit 0ee3441
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.Commit451:ResourcesPoet:0.0.1'
compile 'com.github.Commit451:ResourcesPoet:1.0.0'
}
```

Expand All @@ -32,15 +32,13 @@ File valuesFolder = new File(resFolderPath + File.separator + "values");
valuesFolder.mkdirs();
File configXml = new File(valuesFolder, "config.xml");
configXml.createNewFile();
StreamResult result = new StreamResult(configXml);
poet.build(result, true);
poet.build(configXml);
```
or if you want to write it to a string:
```java
StringWriter writer = new StringWriter();
StreamResult result = new StreamResult(writer);
poet.build(result, true);
String resourcesXml = writer.toString();
//indentation makes it easier to look at
poet.indent(true);
String resourcesXml = poet.build();
```

## Supported Types
Expand Down

0 comments on commit 0ee3441

Please sign in to comment.