class ExternalizableDataAccess<T extends Externalizable> extends SerializableDataAccess<T> {

    /**
     * Config field
     */
    private Class<T> tClass;

    public ExternalizableDataAccess(Class<T> tClass) {
        this(tClass, DEFAULT_BYTES_CAPACITY);
    }

    private ExternalizableDataAccess(Class<T> tClass, long bytesCapacity) {
        super(bytesCapacity);
        this.tClass = tClass;
    }

    protected Class<T> tClass() {
        return tClass;
    }

    protected T createInstance() {<FILL_FUNCTION_BODY>}

    @Override
    public T getUsing(@Nullable T using) {
        if (using == null)
            using = createInstance();
        try {
            using.readExternal(new ObjectInputStream(in));
            bytes.readPosition(0);
            return using;
        } catch (IOException | ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public Data<T> getData(@NotNull T instance) {
        this.instance = instance;
        bytes.clear();
        try {
            ObjectOutputStream out = new ObjectOutputStream(this.out);
            instance.writeExternal(out);
            out.flush();
            return this;
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public DataAccess<T> copy() {
        return new ExternalizableDataAccess<>(tClass, bytes.realCapacity());
    }

    @Override
    public void readMarshallable(@NotNull WireIn wireIn) {
        tClass = wireIn.read(() -> "tClass").typeLiteral();
        initTransients(DEFAULT_BYTES_CAPACITY);
    }

    @Override
    public void writeMarshallable(@NotNull WireOut wireOut) {
        wireOut.write(() -> "tClass").typeLiteral(tClass);
    }
}

        try {
            return tClass.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            throw new RuntimeException(
                    "Externalizable " + tClass + " must have a public no-arg constructor", e);
        }
    
<methods>public void <init>() ,public net.openhft.chronicle.bytes.RandomDataInput bytes() ,public DataAccess<T> copy() ,public T get() ,public Data<T> getData(T) ,public T getUsing(T) ,public long offset() ,public void readMarshallable(net.openhft.chronicle.wire.WireIn) ,public long size() ,public void uninit() ,public void writeMarshallable(net.openhft.chronicle.wire.WireOut) <variables>transient Bytes#RAW bytes,transient java.io.InputStream in,transient T instance,transient java.io.OutputStream out