Package com.drew.lang

Examples of com.drew.lang.SequentialByteArrayReader


    @NotNull
    public static IptcDirectory processBytes(@NotNull String filePath) throws IOException
    {
        Metadata metadata = new Metadata();
        byte[] bytes = FileUtil.readBytes(filePath);
        new IptcReader().extract(new SequentialByteArrayReader(bytes), metadata, bytes.length);
        IptcDirectory directory = metadata.getDirectory(IptcDirectory.class);
        assertNotNull(directory);
        return directory;
    }
View Full Code Here

TOP

Related Classes of com.drew.lang.SequentialByteArrayReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.