Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
abcl
abcl
Commits
60b6a63c
Commit
60b6a63c
authored
Mar 03, 2014
by
mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f
Browse files
Methods to load Lisp code directly from an InputStream.
parent
fbdadbdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/armedbear/lisp/Load.java
View file @
60b6a63c
...
...
@@ -127,6 +127,24 @@ public final class Load
{
return
load
(
pathname
,
verbose
,
print
,
ifDoesNotExist
,
false
,
Keyword
.
DEFAULT
);
}
public
static
final
LispObject
load
(
InputStream
in
)
{
return
load
(
in
,
new
SimpleString
(
"UTF-8"
));
}
public
static
final
LispObject
load
(
InputStream
in
,
LispObject
format
)
{
Stream
stream
=
new
Stream
(
Symbol
.
SYSTEM_STREAM
,
in
,
Symbol
.
CHARACTER
,
format
);
final
LispThread
thread
=
LispThread
.
currentThread
();
return
loadFileFromStream
(
null
,
null
,
stream
,
Symbol
.
LOAD_VERBOSE
.
symbolValue
(
thread
)
!=
NIL
,
Symbol
.
LOAD_PRINT
.
symbolValue
(
thread
)
!=
NIL
,
false
);
}
public
static
final
LispObject
load
(
final
Pathname
pathname
,
boolean
verbose
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment