Skip to content

Commit

Permalink
start work on encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy committed Jan 6, 2016
1 parent 8d8eaa2 commit 09ed084
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion env.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</block>
</if>
</expression>
<variable name="comp target">1.5</variable>
<variable name="comp target">1.6</variable>
<expression variable="JAVA_HOME">
<function name="cropname">
<parameter variable="JAVA_HOME"/>
Expand Down
6 changes: 6 additions & 0 deletions src/java/org/kc7bfi/jflac/FLACEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/

import java.io.File;

import org.kc7bfi.jflac.frame.EntropyPartitionedRiceContents;
import org.kc7bfi.jflac.io.BitOutputStream;

Expand Down Expand Up @@ -320,6 +322,10 @@ public FLACEncoder() {
state = STREAM_ENCODER_UNINITIALIZED;
}

public void encode(File inputFile, File outputFile) {
throw new UnsupportedOperationException("encode");
}

/*
void stream_encoder_delete(StreamEncoder *encoder)
{
Expand Down
9 changes: 4 additions & 5 deletions src/java/org/kc7bfi/jflac/io/RandomFileInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,20 @@ public long getLength() throws IOException {
* @see java.io.InputStream#markSupported()
*/
public boolean markSupported() {
return true;
return false;
}

/**
* @see java.io.InputStream#mark(int)
*/
public synchronized void mark(int arg0) {
/** TODO */
System.out.println("RandomFileInputStream: mark");
public synchronized void mark(int pos) {
throw new UnsupportedOperationException("mark");
}

/**
* Skip bytes in the input file.
* @param bytes The number of bytes to skip
* @return the number of bytes skiped
* @return the number of bytes skipped
* @throws IOException on IO error
* @see java.io.InputStream#skip(long)
*/
Expand Down

0 comments on commit 09ed084

Please sign in to comment.