congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ByteWriter
Code IndexAdd Tabnine to your IDE (free)

How to use
ByteWriter
in
mil.nga.sf.util

Best Java code snippets using mil.nga.sf.util.ByteWriter (Showing top 2 results out of 315)

origin: mil.nga.geopackage/geopackage-core

ByteWriter writer = new ByteWriter();
writer.writeString(GeoPackageConstants.GEO_PACKAGE_GEOMETRY_MAGIC_NUMBER);
writer.writeByte(GeoPackageConstants.GEO_PACKAGE_GEOMETRY_VERSION_1);
writer.writeByte(flags);
writer.setByteOrder(byteOrder);
writer.writeInt(srsId);
wkbGeometryIndex = writer.size();
bytes = writer.getBytes();
writer.close();
origin: mil.nga.geopackage/geopackage-core

/**
 * Write the envelope bytes
 * 
 * @param writer
 *            byte writer
 * @throws IOException
 */
private void writeEnvelope(ByteWriter writer) throws IOException {
  if (envelope != null) {
    // Write x and y values
    writer.writeDouble(envelope.getMinX());
    writer.writeDouble(envelope.getMaxX());
    writer.writeDouble(envelope.getMinY());
    writer.writeDouble(envelope.getMaxY());
    // Write z values
    if (envelope.hasZ()) {
      writer.writeDouble(envelope.getMinZ());
      writer.writeDouble(envelope.getMaxZ());
    }
    // Write m values
    if (envelope.hasM()) {
      writer.writeDouble(envelope.getMinM());
      writer.writeDouble(envelope.getMaxM());
    }
  }
}
mil.nga.sf.utilByteWriter

Javadoc

Write a byte array

Most used methods

  • <init>
    Constructor
  • close
    Close the byte writer
  • getBytes
    Get the written bytes
  • setByteOrder
    Set the byte order
  • size
    Get the current size in bytes written
  • writeByte
    Write a byte
  • writeDouble
    Write a double
  • writeInt
    Write an integer
  • writeString
    Write a String

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now