public class FitsUtil extends Object
Constructor and Description |
---|
FitsUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
addPadding(int size)
Total size of blocked FITS element
|
static String[] |
byteArrayToStrings(byte[] o,
int maxLen)
Convert bytes to Strings
|
static long |
findOffset(Object o)
Find out where we are in a random access file
|
static boolean |
isCompressed(String filename)
Check if a filename seems to imply a compressed
data stream.
|
static int |
maxLength(String[] o)
Get the maximum length of a String in a String array.
|
static int |
padding(int size)
How many bytes are needed to fill the last 2880 block?
|
static void |
reposition(Object o,
long offset)
Reposition a random access stream to a requested offset
|
static byte[] |
stringsToByteArray(String[] o,
int maxLen)
Copy an array of Strings to bytes.
|
public static void reposition(Object o, long offset) throws FitsException
FitsException
public static long findOffset(Object o)
public static int padding(int size)
public static int addPadding(int size)
public static boolean isCompressed(String filename)
public static int maxLength(String[] o) throws FitsException
FitsException
public static byte[] stringsToByteArray(String[] o, int maxLen)
public static String[] byteArrayToStrings(byte[] o, int maxLen)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.