# Class GeneratedMessage.ExtendableMessage&lt;MessageType&gt;.ExtensionWriter (3.19.4)

    protected class GeneratedMessage.ExtendableMessage<MessageType>.ExtensionWriter

Used by subclasses to serialize extensions. Extension ranges may be
interleaved with field numbers, but we must write them in canonical
(sorted by field number) order. ExtensionWriter helps us write
individual ranges of extensions at once.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GeneratedMessage.ExtendableMessage\<MessageType\>.ExtensionWriter

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Methods

### writeUntil(int end, CodedOutputStream output)

    public void writeUntil(int end, CodedOutputStream output)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `end` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `output` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedOutputStream` |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |