Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package javax.servlet;
 /*     */ 
 /*     */ import java.io.IOException;
 /*     */ import java.io.InputStream;
 /*     */ 
 /*     */ public abstract class ServletInputStream extends InputStream
 /*     */ {
 /*     */   public int readLine(byte[] bint offint len)
 /*     */     throws IOException
/*     */   {
/*  89 */     if (len <= 0) {
/*  90 */       return 0;
/*     */     }
/*  92 */     int count = 0;
/*     */     int c;
/*  94 */     while ((c = read()) != -1) {
/*  95 */       b[(off++)] = (byte)c;
/*  96 */       count++;
/*  97 */       if (c == 10) breakif (count == len) {
/*  98 */         break;
/*     */       }
/*     */     }
/* 101 */     return count > 0 ? count : -1;
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     javax.servlet.ServletInputStream
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X