java.io.Closeable
, java.io.DataOutput
, java.io.Flushable
, java.lang.AutoCloseable
public final class ClassFormatOutput
extends java.io.DataOutputStream
Constructor | Description |
---|---|
ClassFormatOutput() |
|
ClassFormatOutput(int size) |
|
ClassFormatOutput(java.io.OutputStream stream) |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getData() |
Get a reference to the data array the class data is being built
in.
|
(package private) static void |
limit(java.lang.String name,
int limit,
int value) |
Throw an ClassFormatError if a limit of the Java class file format is reached.
|
void |
putU1(int i) |
|
void |
putU2(int i) |
|
void |
putU2(java.lang.String limit,
int i) |
|
void |
putU4(int i) |
|
void |
writeTo(java.io.OutputStream outTo) |
public ClassFormatOutput()
public ClassFormatOutput(int size)
public ClassFormatOutput(java.io.OutputStream stream)
public void putU1(int i) throws java.io.IOException
java.io.IOException
public void putU2(int i) throws java.io.IOException
java.io.IOException
public void putU2(java.lang.String limit, int i) throws java.io.IOException
java.io.IOException
public void putU4(int i) throws java.io.IOException
java.io.IOException
public void writeTo(java.io.OutputStream outTo) throws java.io.IOException
java.io.IOException
public byte[] getData()
static void limit(java.lang.String name, int limit, int value) throws java.io.IOException
name
- Terse limit description from JVM spec.limit
- What the limit is.value
- What the value for the current class isjava.io.IOException
- Thrown when limit is exceeded.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.