docs: @Override
      public void write(int theByte)
              throws IOException {
          if (out == null) {
              throw new IOException("Writing to closed Base64OutputStream");
          }
          // Encoding suspended?
          buffer[position++] = (byte) theByte;
          if (position >= 3) { // Enough to encodeToString.
              if (breakLines && lineLength >= Base64.MAX_LINE_LENGTH) {
                  if (crlf) {
                      out.write(Base64.CR);
                  }
                  out.write(Base64.LF);
                  lineLength = 0;
              }
  
              Base64.encode3to4(buffer, 0, 3, b4, 0, noPadding, alphabet);
              out.write(b4, 0, 4);
              lineLength += 4;
              position = 0;
          }
      }