public class LineOrientedResponse extends Object
LineOrientedResponse class.
Constructor and Description |
---|
LineOrientedResponse(String response)
Constructor for LineOrientedResponse.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String pattern)
contains
|
boolean |
endsWith(String suffix)
endsWith
|
boolean |
equals(String response)
equals
|
boolean |
find(String regex)
find
|
String |
getResponse()
getResponse
|
boolean |
matches(String regex)
matches
|
void |
receive(BufferedReader in)
receive
|
void |
setResponse(String response)
setResponse
|
boolean |
startsWith(String prefix)
startsWith
|
String |
toString()
toString
|
public void receive(BufferedReader in) throws IOException
receive
in
- a BufferedReader
object.IOException
- if any.public boolean startsWith(String prefix)
startsWith
prefix
- a String
object.public boolean contains(String pattern)
contains
pattern
- a String
object.public boolean endsWith(String suffix)
endsWith
suffix
- a String
object.public boolean matches(String regex)
matches
regex
- a String
object.public boolean find(String regex)
find
regex
- a String
object.public boolean equals(String response)
equals
response
- a String
object.public String toString()
toString
public void setResponse(String response)
setResponse
response
- a String
object.Copyright © 2017. All rights reserved.