Skip to content
Snippets Groups Projects
Commit 8f2dea78 authored by Zbynek Slajchrt's avatar Zbynek Slajchrt
Browse files

'wr' open mode added

parent 249a0c57
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ public abstract class ConnectionFunctions {
Casts casts = new Casts(TextConnection.class);
CastsHelper.description(casts);
casts.arg("text").allowNull().mustBe(stringValue());
CastsHelper.open(casts).mustBe(equalTo("").or(equalTo("r").or(equalTo("w").or(equalTo("a")))), RError.Message.UNSUPPORTED_MODE);
CastsHelper.open(casts).mustBe(equalTo("").or(equalTo("r").or(equalTo("w").or(equalTo("a").or(equalTo("wr"))))), RError.Message.UNSUPPORTED_MODE);
casts.arg("env").mustNotBeNull(RError.Message.USE_NULL_ENV_DEFUNCT).mustBe(instanceOf(REnvironment.class));
casts.arg("encoding").asIntegerVector().findFirst().mustNotBeNA();
}
......
......@@ -222,7 +222,7 @@ public class ConnectionSupport {
enum AbstractOpenMode {
Lazy(new String[]{""}, true, true, true),
Read(new String[]{"r", "rt"}, true, true, false),
Write(new String[]{"w", "wt"}, true, false, true),
Write(new String[]{"w", "wt", "wr"}, true, false, true),
Append(new String[]{"a", "at"}, true, false, true),
ReadBinary(new String[]{"rb"}, false, true, false),
WriteBinary(new String[]{"wb"}, false, false, true),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment