private int stripMultipartHeaders(ByteBuffer b,int offset){
  int i;
  for (i=offset; i < b.limit(); i++) {
    if (b.get(i) == '\r' && b.get(++i) == '\n' && b.get(++i) == '\r' && b.get(++i) == '\n') {
      break;
    }
  }
  return i + 1;
}

private int stripMultipartHeaders ( ByteBuffer b , int offset ) { int i ; for ( i = offset ; i < b . limit ( ) ; i ++ ) { if ( b . get ( i ) == '\r' && b . get ( ++ i ) == '\n' && b . get ( ++ i ) == '\r' && b . get ( ++ i ) == '\n' ) { break ; } } return i + 1 ; }
it returns the offset separating multipart file headers from the file ' s data .
