Skip to content

Commit

Permalink
[BZ-1087871] allow to specify encoding for any Kie resource
Browse files Browse the repository at this point in the history
(cherry picked from commit 1afbceb)
  • Loading branch information
mariofusco committed Apr 15, 2014
1 parent 3f640dd commit 2df5d84
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kie-api/src/main/java/org/kie/api/io/KieResources.java
Expand Up @@ -31,14 +31,29 @@ public interface KieResources extends Service {

Resource newUrlResource(URL url);

Resource newUrlResource(URL url,
String encoding);

Resource newUrlResource(String path);

Resource newUrlResource(String path,
String encoding);

Resource newFileSystemResource(File file);

Resource newFileSystemResource(File file,
String encoding);

Resource newFileSystemResource(String fileName);

Resource newFileSystemResource(String fileName,
String encoding);

Resource newByteArrayResource(byte[] bytes);

Resource newByteArrayResource(byte[] bytes,
String encoding);

Resource newInputStreamResource(InputStream stream);

Resource newInputStreamResource(InputStream stream,
Expand Down

0 comments on commit 2df5d84

Please sign in to comment.