public boolean canWriteName(final int length){
  return mDataSize + length + 1 <= mLimit && mPointers.size() + 4 <= mLimit;
}

public boolean canWriteName ( final int length ) { return mDataSize + length + 1 <= mLimit && mPointers . size ( ) + 4 <= mLimit ; }
checks whether writing name will break file size limit
