Add 'src/be/nikiroo/utils/' from commit '46add0670fdee4bd936a13fe2448c5e20a7ffd0a'
[nikiroo-utils.git] / src / be / nikiroo / utils / streams / NextableInputStream.java
index fb4d01b3101727f7a246c4d2440beed479712a74..dcab472efa0569bf6763425567330a536ac3eeeb 100644 (file)
@@ -218,7 +218,7 @@ public class NextableInputStream extends BufferedInputStream {
                        return true;
                }
 
-               // If started, must be stopped an no more data to continue
+               // If started, must be stopped and no more data to continue
                // i.e., sub-stream must be spent
                if (!stopped || hasMoreData()) {
                        return false;
@@ -265,8 +265,8 @@ public class NextableInputStream extends BufferedInputStream {
                                data = new String(Arrays.copyOfRange(buffer, 0, stop), "UTF-8");
                        } catch (UnsupportedEncodingException e) {
                        }
-                       if (data.length() > 50) {
-                               data = data.substring(0, 47) + "...";
+                       if (data.length() > 200) {
+                               data = data.substring(0, 197) + "...";
                        }
                }
                String rep = String.format(