All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mabb.fontverter.io.FontDataInput Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) Maddie Abboud 2016
 *
 * FontVerter is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * FontVerter is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with FontVerter. If not, see .
 */

package org.mabb.fontverter.io;

import java.io.DataInput;
import java.io.IOException;

public interface FontDataInput extends DataInput {
    long readUnsignedInt() throws IOException;

    String readString(int length) throws IOException;

    byte[] readBytes(int length) throws IOException;

    void seek(int offset);

    // converted from pseduo C like reader code from woff spec
    int readUIntBase128() throws IOException;

    float readFixed32() throws IOException;

    int getPosition();

    int[] readSplitBits(int numUpperBits) throws IOException;

    int[] readUnsignedShortArray(int length) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy