Browse files

Add missing readStringUntil() method

  • Loading branch information...
1 parent deac431 commit d9768bca5db8dd7367c343cd396552f6afdc5c64 @gohai gohai committed Oct 28, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 java/libraries/serial/src/processing/serial/
10 java/libraries/serial/src/processing/serial/
@@ -349,6 +349,16 @@ public String readString() {
+ public String readStringUntil(int inByte) {
+ byte temp[] = readBytesUntil(inByte);
+ if (temp == null) {
+ return null;
+ } else {
+ return new String(temp);
+ }
+ }
public void serialEvent(SerialPortEvent event) {
if (event.getEventType() == SerialPortEvent.RXCHAR) {
int toRead;

5 comments on commit d9768bc


added this function to existing 2.1 Still get "function readStringUntil(char) does not exist". Does this require a recompile?


sspence65: yes


Hi, if that could help beginner like me, the file is path start by: processing-2.1/modes/java/libraries/serial/src/processing/serial/

  • Like sspence65 mention we need to compile how do I can do that?
  • Last that may be the answer to my previous question, but what java editor you recommend me to use to do those kind of simple task?



@Alexandreitsme Please just revert to Processing 2.0.3 for the time being. This will be fixed with the next Processing release. Thanks.


@Alexandreitsme To answer your questions:

  • to compile java, you need a java compiler (javac, which stands for java compiler, which is part of the Java Development Kit)
  • Eclipse is one of the recommended Integrated Development Environments (IDE) for java; it bundles a java text editor and java compiler, as well as debugging tools
Please sign in to comment.