Class GenericFileProtocol

java.lang.Object
com.j3d.storage.files.protocol.GenericFileProtocol
Direct Known Subclasses:
ProjectFile

public class GenericFileProtocol extends Object
GenericFileProtocol provides methods to read and write a standard file header for J3D files.
  • Field Details

  • Constructor Details

    • GenericFileProtocol

      public GenericFileProtocol()
  • Method Details

    • writeHeader

      public void writeHeader(DataOutputStream dos)
      Writes the standard J3D file header to the provided DataOutputStream.
      Parameters:
      dos - The DataOutputStream to write the header to.
      Throws:
      IOException - If an I/O error occurs.
    • readHeader

      public void readHeader(DataInputStream dis)
      Reads and validates the standard J3D file header from the provided DataInputStream.
      Parameters:
      dis - The DataInputStream to read the header from.
      Throws:
      IOException - If an I/O error occurs or if the header is invalid.