public AmiraParameters(RandomAccessInputStream inputStream) throws FormatException, IOException { readFile(inputStream); }
public static String getHeader(PrintStyles style) { if (style == PrintStyles.XML) return getXmlHeader(); if (style == PrintStyles.HTML) return getHtmlHeader(); if (style == PrintStyles.TXT) return getTextHeader(); return ""; }
public static String getFooter(PrintStyles style) { if (style == PrintStyles.XML) return getXmlFooter(); if (style == PrintStyles.HTML) return getHtmlFooter(); if (style == PrintStyles.TXT) return getTextFooter(); return ""; }
public void makeOmeTiff(final String name, final CoreMetadata info) throws FormatException, IOException { final String id = getId(name); try (OMETiffWriter out = createWriter(name, info, id)) { writeData(name, info, id, out); } }
protected Integer[] readIntArray(int count) throws FormatException, IOException { Integer[] result = new Integer[count]; for (int i = 0; i < count; i++) { result[i] = (Integer) readNumber(); skipWhiteSpace(); } return result; }
public static void main(String[] args) throws Exception { try (RandomAccessInputStream in = EditTiffG.open(args[0])) { } }
protected void skipWhiteSpace() throws IOException { while (c == ' ' || c == '\t' || c == '\n') readByte(); }
public void save() { saveFile(file); }
public static boolean validate(String file) throws IOException { String[] files = new String[1]; files[0] = file; return validate(files)[0]; }
public static void main(String[] args) { printSupportedFormats(args); }
public void makeOmeTiff(final String name, final CoreMetadata info) throws FormatException, IOException { final String id = getId(name); try (OMETiffWriter out = createWriter(name, info, id)) { writeData(name, info, id, out); } }
protected Integer[] readIntArray(int count) throws FormatException, IOException { Integer[] result = new Integer[count]; for (int i = 0; i < count; i++) { result[i] = (Integer) readNumber(); skipWhiteSpace(); } return result; }
public static void main(String[] args) throws Exception { try (RandomAccessInputStream in = EditTiffG.open(args[0])) { } }
public AmiraParameters(RandomAccessInputStream inputStream) throws FormatException, IOException { readFile(inputStream); }
protected void skipComment() throws IOException { while (c != '\n') readByte(); }
public void save() { saveFile(file); }
public AmiraParameters(String path) throws FormatException { readFile(path); }
protected void skipWhiteSpace() throws IOException { while (c == ' ' || c == '\t' || c == '\n') readByte(); }
public AmiraParameters(String path) throws FormatException { readFile(path); }
protected void skipComment() throws IOException { while (c != '\n') readByte(); }