-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRIFFVisitor.java
More file actions
38 lines (35 loc) · 1.35 KB
/
RIFFVisitor.java
File metadata and controls
38 lines (35 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* @(#)RIFFVIsitor.java 1.0 2005-01-09
*
* Copyright (c) 2005 Werner Randelshofer, Immensee, Switzerland.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with Werner Randelshofer.
* For details see accompanying license terms.
*/
/**
* RIFFVIsitor is notified each time the RIFFParser visits
* a data chunk and when a group is entered or leaved.
*
* @version 1.0 2005-01-09 Created.
*/
public interface RIFFVisitor {
/** This method is invoked when the parser attempts to enter a group.
* The visitor can return false, if the parse shall skip the group contents.
*
* @param group
* @return True to enter the group, false to skip over the group.
*/
public boolean enteringGroup(RIFFChunk group);
/** This method is invoked when the parser enters a group chunk.*/
public void enterGroup(RIFFChunk group)
throws ParseException, AbortException;
/** This method is invoked when the parser leaves a group chunk.*/
public void leaveGroup(RIFFChunk group)
throws ParseException, AbortException;
/** This method is invoked when the parser has read a data chunk or
* has skipped a stop chunk.*/
public void visitChunk(RIFFChunk group, RIFFChunk chunk)
throws ParseException, AbortException;
}