Package davaguine.jmac.tools

Examples of davaguine.jmac.tools.File


                System.out.print("~~~Improper Usage~~~\n\n");
                System.out.print("Usage Example: ChangeTagInfo \"c:\\1.ape\" TagName TagValue\n\n");
                return;
            }

            File in = File.createFile(args[0], "rw");
            if (!in.isLocal()) {
                System.out.print("~~~Improper Usage~~~\nThe input ape file should be local file.\n");
                return;
            }

            APEInfo apeInfo = IAPEDecompress.CreateAPEInfo(in);
View Full Code Here


        m_nStartBlock = 0;
        m_nFinishBlock = 0;
        m_cImageFilename = "";

        // open the file
        File ioLinkFile = new RandomAccessFile(new java.io.File(pFilename), "r");
        // create a buffer
        byte[] spBuffer = new byte[1024];

        // fill the buffer from the file and null terminate it
        int numRead = ioLinkFile.read(spBuffer);

        byte[] buffer = new byte[numRead];
        System.arraycopy(spBuffer, 0, buffer, 0, numRead);

        // call the other constructor (uses a buffer instead of opening the file)
View Full Code Here

    public boolean open(Track track) {
        this.track = track;
        try {
            logger.fine("Opening file: " + track.getTrackData().getFile());
            File apeInputFile = File.createFile(track.getTrackData().getFile().getAbsolutePath(), "r");
            decoder = IAPEDecompress.CreateIAPEDecompress(apeInputFile);
            blockAlign = decoder.getApeInfoBlockAlign();
            return true;
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of davaguine.jmac.tools.File

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.