Package globus.glmap

Class GLMapUtils

java.lang.Object
globus.glmap.GLMapUtils

@RestrictTo(LIBRARY_GROUP) public final class GLMapUtils extends Object
Internal utility helpers shared across the glmap library.
  • Method Details

    • readAllBytes

      @NonNull public static byte[] readAllBytes(@NonNull InputStream stream) throws IOException
      Reads the stream to its end and returns the accumulated bytes.
      Parameters:
      stream - input stream to drain
      Returns:
      all bytes read from stream
      Throws:
      IOException - if reading from the stream fails