@Override
  public final int writeSize() {
    if (writeSize < 0) {
      throw new UnsupportedOperationException("writeSize is unknown");
    }

    return writeSize;
  }
{@inheritDoc}

@throws UnsupportedOperationException thrown if the write size is not yet known
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/OffsettedItem.java