-
Notifications
You must be signed in to change notification settings - Fork 95
Scala web templates: xylo.io
Stefan Endrullis edited this page Jun 10, 2019
·
2 revisions
This file contains templates related to I/O operations (e.g. file system, streams).
Conversation templates applicable to Strings
:
-
.toFile
- convert file path (String
) toFile
-
.toURL
- convert URL (String
) toURL
-
.toURI
- convert URI (String
) toURI
Templates for different types of resources:
-
.lines
- get lines (content) ofFile
, Path,
InputStream, or
URL` -
.content
- get content (asString
) ofFile
,Path
,InputStream
, orURL
-
.inputStream
- getInputStream
ofString
,File
, orURL
-
.outputStream
- getOutputStream
ofFile
-
.bufferedReader
- getBufferedReader
ofFile
,InputStream
, orURL
-
.bufferedWriter
- getBufferedWriter
ofFile
orOutputStream
-
.printStream
- getPrintStream
ofFile
orOutputStream
Debug templates:
-
.sout
- print variable to System.out -
.soutv
- print variable to System.out