# Uses of Interface
java.lang.classfile.BufWriter

Packages that use BufWriterPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- ## Uses of BufWriterPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW with parameters of type BufWriterPREVIEW
  Modifier and Type
  Method
  Description
  `boolean`
  ClassReader.`compare(BufWriterPREVIEW bufWriter, int bufWriterOffset, int classReaderOffset, int length)`
  Compare a range of bytes from the classfile to a range of bytes within a `BufWriter`PREVIEW.
  `void`
  ClassReader.`copyBytesTo(BufWriterPREVIEW buf, int offset, int len)`
  Copy a range of bytes from the classfile to a `BufWriter`PREVIEW
  `void`
  AttributeMapper.`writeAttribute(BufWriterPREVIEW buf, A attr)`
  Write an `Attribute`PREVIEW instance to a classfile.
  `void`
  BufWriter.`writeBytes(BufWriterPREVIEW other)`
  Write the contents of another `BufWriter`PREVIEW to the buffer
  `void`
  WritableElement.`writeTo(BufWriterPREVIEW buf)`
  Writes the element to the specified writer

- ## Uses of BufWriterPREVIEW in java.lang.classfile.constantpoolPREVIEW

  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type BufWriterPREVIEW
  Modifier and Type
  Method
  Description
  `boolean`
  ConstantPoolBuilder.`writeBootstrapMethods(BufWriterPREVIEW buf)`
  Writes associated bootstrap method entries to the specified writer

- ## Uses of BufWriterPREVIEW in java.lang.classfile.instructionPREVIEW

  Methods in java.lang.classfile.instructionPREVIEW with parameters of type BufWriterPREVIEW
  Modifier and Type
  Method
  Description
  `boolean`
  LocalVariable.`writeTo(BufWriterPREVIEW buf)`
  Writes the local variable to the specified writer
  `boolean`
  LocalVariableType.`writeTo(BufWriterPREVIEW buf)`
  Writes the local variable to the specified writer