code: private static int copyLine(byte[] src, int srcoff,
                                  byte[] dst, int dstoff, int len)
      {
          if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
              logger.logp(Level.FINE, CLASS_NAME,"readLine", "copyLine");
          } 
          int off = srcoff;
          while ( len-- > 0 && src[off++] != '\n' ) ;
          System.arraycopy(src, srcoff, dst, dstoff, off - srcoff);
          return off - srcoff;
      }
docs: /*
  Copies up to a line of data from source to destination buffer.