コード例 #1
0
ファイル: SWFReader.java プロジェクト: shelsonjava/jswiff
 private void processTag(Tag tag, long streamOffset) {
   switch (tag.tagType()) {
     case SET_BACKGROUND_COLOR:
       document.setBackgroundColor(((SetBackgroundColor) tag).getColor());
       return;
     case FILE_ATTRIBUTES:
       if (((FileAttributes) tag).isAllowNetworkAccess()) {
         document.setAccessMode(SWFDocument.ACCESS_MODE_NETWORK);
       }
       return;
     case METADATA:
       document.setMetadata(((Metadata) tag).getDataString());
       return;
   }
   document.addTag(tag);
   for (SWFListener l : listeners) {
     l.processTag(tag, streamOffset);
   }
 }