Guest User

Untitled

a guest
May 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. InputStream in = getClass().getResourceAsStream(
  2. "/design-documents/documents.json");
  3. Path tempPath = Files.createTempFile("desdoc-", ".json");
  4. Files.copy(in, tempPath);
  5. DesignDocument design = DesignDocumentManager.fromFile(tempPath.toFile());
  6. Files.delete(tempPath);
Add Comment
Please, Sign In to add comment