InputStream から引用符までのバイトのリストを読み取るのに助けが必要です。問題は、 InputStream がバイトを読み取り、引用符に達したときに読み取りを停止する方法がわからないことです...次のようなことを考えました:
public static List<Byte> getQuoted(InputStream in) throws IOException {
int c;
LinkedList<Byte> myList = new LinkedList<>();
try {
while ((in.read()) != "\"") { ?????
list.add(c)
.....
while 条件は問題です。もちろん、引用符はString
whileint
が期待されます。