import java.applet.AudioClip; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; /**

An object implementing {@link java.applet.AudioClip java.applet.AudioClip} with the data from Jawa Sound Effect.wav hard-coded into it.

*

Created with the SoundToClass tool, by Stephen G. Ware.

* @author Stephen G. Ware */ public class Jawa implements AudioClip { private byte[] data; private AudioFormat format; private DataLine.Info lineInfo = null; private PlayThread playThread = null; private LoopThread loopThread = null; private static final long serialVersionUID = 9663; private static byte[] data0(){ return new byte[] {-128,-128,-128,-128,-128,-128,-128,127,-127,-128,-128,-128,-128,-128,-128,127,127,-128,-128,-128,-127,127,127,-128,127,127,127,-128,127,-128,-128,127,-128,127,126,127,-128,126,-128,-128,-128,127,-128,127,126,127,-128,127,127,-128,-128,-128,-128,-128,-127,-128,126,-127,-128,-128,-128,-128,-128,127,127,127,-128,127,127,127,126,-128,-128,127,-128,-128,127,127,-128,127,-128,127,127,-128,-128,127,127,127,127,126,127,-128,-128,127,127,126,127,126,127,127,-128,127,127,-128,127,127,127,127,126,126,-127,-128,127,127,126,127,127,-128,-128,-128,-128,-127,-127,-128,-127,-127,127,127,127,127,126,125,127,126,127,126,126,127,125,127,-128,-127,-127,127,-128,127,-128,-128,127,-128,-128,126,125,-128,-128,-128,-128,-128,-127,-128,127,127,-127,-127,127,-128,-128,-127,127,127,-126,-127,127,-128,-127,-128,-127,127,-128,-127,-128,127,-127,-126,-128,-128,-128,-127,-128,127,-127,-127,-127,127,-128,-128,127,-128,125,127,-128,127,127,126,127,127,127,126,127,127,126,-128,127,-128,-128,-128,127,-128,127,-127,-128,-128,-127,127,-128,127,127,-128,127,127,-128,-128,127,127,127,127,-127,-127,126,127,-128,-128,127,126,-127,127,126,127,127,-128,125,127,127,126,127,125,127,127,-128,127,127,127,-128,127,127,-127,127,127,126,-127,-128,126,-128,126,127,-128,126,126,127,-128,-128,127,-128,-128,-128,-128,127,-128,127,127,-128,126,-128,-128,-128,-128,127,-127,-128,125,-128,127,127,-128,127,127,-128,127,127,-128,-128,127,127,-128,-128,127,127,-128,127,127,127,127,-128,127,-128,-128,127,-128,127,-128,-127,125,-128,-128,127,126,-128,-127,127,-128,126,127,-128,127,127,-128,-128,127,-127,-128,-127,-128,-128,-128,-128,-127,-128,-128,-126,-126,127,-128,-127,-127,127,127,-128,127,127,126,-128,-128,126,127,127,126,127,-128,127,-128,-128,126,126,-128,-128,127,127,127,127,127,127,-128,127,126,-126,-128,127,127,127,127,-127,-127,126,127,127,127,126,127,-128,-128,-128,126,127,-128,-127,127,126,-127,-128,126,126,-128,127,126,-128,-128,-127,126,126,-128,-128,127,127,-127,126,127,-127,127,-128,127,127,127,127,-128,127,-128,126,-127,-127,127,-128,126,-127,-127,-127,-127,-128,-128,127,-128,-128,-127,127,127,-127,-127,127,-128,-128,-128,-127,-127,-128,127,-127,-128,127,127,127,-128,-128,127,126,-128,-128,126,126,127,-128,-128,127,127,-128,-127,126,127,-126,126,126,-128,-128,-128,127,127,127,-128,127,126,127,-128,-127,127,-128,-128,127,-128,-128,127,-128,-128,-128,127,127,-128,-128,127,-128,127,-128,127,-128,-128,127,127,-128,126,-128,-127,127,126,-128,127,127,127,-127,-128,127,-127,126,127,-128,-127,-127,127,127,-128,-127,127,127,127,127,126,126,126,126,127,126,127,127,127,126,127,-128,126,127,127,-127,127,125,-128,-128,-128,-128,126,126,-126,-128,127,-128,127,-128,-128,-128,-127,127,126,127,-128,-128,-127,127,-128,-127,127,127,127,-127,127,126,127,127,127,-128,127,-128,127,-127,-128,-128,-128,-127,-128,-128,-127,-128,-127,127,126,-128,127,-128,-128,126,127,-128,126,126,-128,-128,127,127,127,-127,-128,126,-128,-127,127,-128,-127,127,127,-128,-128,126,-128,-127,127,-127,127,-127,-128,-128,-128,127,127,-128,-127,127,127,-128,127,-128,127,-128,-128,-128,127,126,126,127,-127,-127,-128,-128,-128,126,126,-127,-126,126,127,127,127,126,126,-128,127,127,-128,-127,-127,127,127,127,126,127,-128,127,127,-128,127,127,127,-127,-127,-128,126,-128,-125,-128,-128,127,-128,-126,126,127,-127,-128,-128,127,127,-127,127,127,-128,127,-128,126,-127,-127,-128,-126,127,-128,-128,-128,127,-128,-127,-128,127,127,127,-128,-127,126,127,-127,126,125,127,-128,125,123,-128,-128,125,126,127,-127,127,126,-128,-128,127,125,-128,-127,127,127,-127,-128,125,-128,-128,-127,-128,127,-128,127,-127,-128,127,127,127,126,125,-128,127,-127,-128,-126,-128,-128,-125,-128,127,125,127,125,124,125,125,125,126,-127,127,-128,-127,-125,-126,-127,-125,-127,125,125,127,126,124,123,126,126,124,-128,-128,-126,-128,-125,-125,-127,-124,-124,-126,125,-128,124,125,124,126,124,124,-127,-128,-126,-125,-123,-122,-124,-126,127,126,124,120,120,119,123,125,126,127,-127,-125,-126,-120,-120,-124,-125,-128,127,123,120,121,120,122,123,125,-126,-127,-124,-120,-120,-121,-120,-124,-123,127,123,123,120,121,120,123,125,-127,126,-122,-124,-117,-122,-124,-121,-128,127,121,121,118,120,117,123,122,-127,-127,-125,-122,-121,-120,-119,-123,-125,-128,124,123,118,119,121,122,124,125,-128,-123,-123,-119,-121,-120,-124,-127,126,126,119,122,117,121,122,125,127,-126,-123,-121,-120,-120,-118,-126,-124,122,123,118,117,118,120,120,127,126,-123,-123,-120,-118,-121,-121,-126,-128,125,122,120,119,119,121,124,125,-126,-127,-119,-123,-119,-123,-126,-127,123,120,115,114,114,118,119,124,126,-125,-121,-121,-116,-121,-121,-128,125,121,119,114,118,115,123,123,-125,-121,-117,-112}; } private static byte[] data1(){ return new byte[] {-114,-113,-118,-122,127,124,116,117,113,118,122,-128,-122,-120,-115,-113,-113,-116,-119,-128,127,119,117,115,116,118,124,124,-123,-123,-120,-116,-120,-115,-126,-124,124,122,118,117,115,120,118,-128,-127,-122,-114,-119,-110,-120,-119,-128,122,114,110,107,111,111,120,-126,-120,-112,-111,-106,-111,-116,-123,123,117,112,107,110,111,118,127,-127,-117,-119,-113,-116,-119,-120,-128,125,120,116,117,115,118,122,124,-126,-124,-123,-116,-121,-115,-122,-126,127,118,115,107,109,111,117,118,-126,-126,-110,-112,-108,-107,-118,-121,120,115,105,103,103,110,113,-126,-122,-111,-108,-105,-104,-114,-121,125,119,114,112,110,115,114,-128,126,-125,-122,-122,-119,-124,-122,-124,-128,127,123,123,122,118,123,125,122,-123,126,-113,-120,-113,-115,-124,-125,120,113,107,104,108,115,115,-122,-118,-103,-102,-98,-98,-112,-124,120,108,102,97,98,109,111,-127,-121,-110,-105,-101,-101,-107,-116,-122,125,123,116,115,115,113,121,121,127,-125,-125,-117,-116,-115,-113,-120,-123,126,116,112,106,106,108,115,120,-123,-119,-106,-103,-106,-106,-122,-125,110,106,96,97,96,110,113,-119,-118,-103,-100,-102,-103,-117,-123,121,114,107,107,106,114,114,-124,-126,-120,-119,-121,-117,-119,-120,-124,126,-128,125,122,122,118,124,124,124,-125,-128,-117,-117,-119,-110,-128,-122,114,113,107,105,110,116,119,-118,-113,-102,-93,-102,-99,-119,-122,112,101,94,91,96,108,114,-122,-117,-106,-100,-106,-101,-114,-118,-127,122,122,112,110,116,111,119,118,123,-124,127,-113,-114,-108,-111,-113,-118,127,118,113,103,104,107,112,127,-128,-108,-113,-102,-103,-110,-113,122,121,103,101,98,105,105,120,120,-110,-115,-103,-102,-108,-107,-125,-125,119,113,108,109,107,120,116,-122,-123,-116,-112,-115,-110,-117,-117,-122,122,123,117,112,115,107,119,117,-128,-123,-125,-114,-114,-109,-114,-118,-127,121,112,108,101,104,109,120,-122,-115,-107,-101,-100,-108,-117,-123,122,103,105,94,94,99,108,121,126,-116,-109,-109,-109,-112,-115,-118,-128,122,110,108,107,105,113,118,125,-119,-116,-110,-103,-99,-102,-110,-115,127,120,111,108,110,110,117,122,-127,-114,-115,-104,-108,-111,-118,127,121,109,105,104,103,113,120,-126,-110,-107,-104,-108,-108,-112,-123,-127,121,115,113,108,110,113,115,124,124,-122,-116,-117,-108,-110,-110,-118,-127,123,114,110,106,104,110,118,-124,-116,-110,-106,-111,-111,-118,-124,-127,119,117,113,108,108,109,115,119,123,-123,-113,-110,-107,-109,-111,-123,124,113,104,101,105,108,117,126,-119,-110,-109,-109,-119,-119,-118,-122,-128,126,122,112,108,108,105,109,117,127,-121,-110,-102,-106,-108,-113,-118,126,117,111,107,106,113,114,122,-124,-120,-111,-115,-111,-111,-110,-107,-117,-127,121,105,103,94,97,108,112,-123,-118,-105,-99,-107,-105,-116,-123,-127,117,114,105,103,109,106,119,123,-123,-112,-110,-103,-110,-112,-110,-122,-128,120,109,106,99,111,110,118,127,-123,-113,-110,-105,-109,-114,-118,-124,122,116,107,107,107,115,124,-124,-119,-114,-109,-108,-112,-117,-119,-117,-121,-127,120,109,104,99,105,114,121,-121,-121,-115,-115,-113,-109,-116,-122,-121,123,116,103,97,99,101,115,-128,-117,-108,-108,-108,-110,-115,-117,-121,-122,126,112,99,93,92,99,109,126,-122,-114,-114,-112,-117,-110,-110,-114,-122,124,116,106,103,106,113,120,-124,-118,-110,-116,-114,-111,-111,-110,-114,-122,-128,120,114,108,102,107,113,121,-127,-123,-119,-117,-115,-115,-110,-109,-113,-113,127,120,105,98,103,107,116,127,-126,-118,-113,-112,-102,-106,-103,-113,-123,127,116,109,103,103,108,112,118,-128,-128,-116,-115,-113,-107,-115,-112,-122,126,123,112,108,108,108,116,122,127,-119,-118,-115,-116,-114,-114,-115,-118,-125,-128,124,116,111,110,108,115,122,122,-127,-126,-125,-121,-116,-116,-111,-116,-124,-125,121,120,114,111,114,114,119,-128,-126,-123,-119,-115,-114,-116,-118,-119,-117,-120,124,114,111,106,112,114,111,117,118,122,-121,-110,-109,-113,-112,-119,-118,-123,124,115,113,114,119,123,123,123,124,-127,-121,-121,-122,-128,123,122,120,121,123,121,121,123,125,126,125,122,122,123,127,-127,122,126,-120,-121,127,126,-123,-124,-126,-124,-121,-121,-125,-124,-123,-122,-128,-128,-125,-125,-126,-126,-124,-124,-128,127,-127,-128,125,123,124,125,125,127,126,125,125,127,-127,-125,-123,-122,-122,-125,-127,-128,-128,-126,-125,-125,-127,-126,-127,-128,127,-127,-128,-128,-127,-126,-123,-125,126,124,126,126,123,125,124,123,124,124,124,125,126,-128,-127,-127,-127,-124,-126,-128,125,124,126,127,127,127,126,126,-128,-128,127,127,-128,-127,127,125,126,127,-127,-127,125,122,125,124,123,123,125,125,126,127,-128,127,-128,127,127,-126,-127,-126,-124,-125,127,124,127,-126,-123,-126,126,127,-128,-128,127,126,126,126,126,127,126,124,124,127,-125,-125,126,126,-128,-128,127,-128,-128,125,127,-128,126,125,-127,-125,-126,-124,-123,-123,-124,-123,-127,126,126}; } private static byte[] data2(){ return new byte[] {127,127,127,125,124,126,-128,127,126,127,-126,-125,-125,-127,-128,-128,-127,-128,-128,-128,125,123,123,126,-128,-127,-128,-127,-125,-125,-124,-124,-123,-124,-124,-125,-128,127,127,127,-127,-126,-124,-126,-126,-127,-127,-128,-128,127,125,125,127,125,124,124,125,124,126,126,-127,-128,-128,-126,-124,-125,-125,-126,126,125,126,125,123,122,123,124,124,126,127,-128,-128,-127,-128,-128,127,127,126,125,127,-128,-128,126,-128,127,126,126,-128,-127,-127,-128,127,127,127,127,127,127,127,127,127,-127,-127,-126,-126,-125,-125,-125,-127,126,125,125,126,124,125,127,127,127,-127,-127,-127,-128,-127,-126,127,-128,-126,-126,-126,-126,-124,-124,-127,-126,-126,-127,127,127,127,126,126,126,127,-128,-128,-127,-125,-125,-127,-128,-127,-127,-128,127,126,126,125,124,124,126,-128,-128,-127,-125,-125,-126,-125,-125,-126,-127,-128,127,125,125,124,126,127,-127,-128,-128,-125,-126,-126,-127,-128,-127,127,127,125,125,126,127,125,126,-127,-127,127,-127,-125,-125,-126,-126,-126,-126,-127,-127,-126,-128,127,127,126,126,127,127,126,126,126,126,125,126,125,124,125,126,126,-128,-127,-127,-126,-124,-123,-124,-124,-124,-125,-126,-127,-128,127,127,123,121,120,120,119,120,121,122,123,124,125,127,-128,-128,-128,-126,-126,-125,-124,-124,-124,-124,-123,-123,-122,-122,-124,-125,-127,127,125,124,124,122,121,122,124,126,126,127,-127,-125,-125,-125,-124,-124,-124,-122,-123,-124,-126,-127,127,126,127,126,125,126,125,124,126,125,124,125,126,127,126,127,-126,-125,-124,-125,-123,-122,-122,-123,-124,-125,-126,-127,-128,126,126,124,121,121,122,123,123,123,125,126,127,-128,-127,-126,-125,-125,-125,-125,-125,-125,-127,-127,-127,-127,127,127,126,126,123,123,122,122,122,121,122,121,123,125,127,-127,-126,-126,-124,-124,-125,-125,-126,-126,-127,-126,-127,-128,-127,127,-128,-128,127,127,126,125,124,124,124,124,123,123,124,125,126,126,-127,-125,-126,-126,-125,-124,-125,-124,-126,-126,-128,-128,127,127,126,126,126,127,127,126,127,-128,-128,127,127,-128,-128,127,-127,-127,-127,-127,-126,-126,-126,-126,-126,-127,-126,-127,-128,127,127,126,126,127,127,125,125,127,125,125,127,-128,-128,-128,-128,127,127,-128,-128,127,127,127,-128,127,-127,-128,-128,-128,-127,-127,-128,-128,-128,127,-127,-127,-128,127,127,-128,-127,-127,-128,126,127,127,-128,127,-128,127,-127,-128,-127,127,-128,127,126,126,-128,127,126,127,127,127,126,127,127,-127,124,124,-128,127,127,-110,118,-127,127,-128,110,-122,112,109,125,-128,-112,118,124,-121,-124,122,110,124,115,123,126,-111,-124,-125,123,-122,-121,122,-120,123,-128,123,120,-124,115,126,116,125,127,-123,119,-115,118,-121,-125,-126,-125,127,-119,-128,-125,-124,-126,-126,-128,-128,127,-126,125,-124,122,-125,-127,-128,-112,-124,-115,-124,-126,-122,-123,-127,-122,120,122,120,-122,122,121,-125,108,-121,103,125,126,104,-124,108,122,-127,114,127,122,115,-123,112,122,123,-121,120,127,126,-126,127,119,-109,116,-124,114,120,-124,114,123,122,-125,-122,110,-121,117,-119,117,125,-118,124,123,118,120,-115,115,121,-127,117,-121,115,112,-126,108,119,122,123,-113,126,118,126,107,119,106,110,126,99,-127,-122,115,-126,124,-123,123,-125,-110,117,-123,-128,120,120,115,124,119,93,110,109,116,105,109,121,113,-128,119,115,-124,119,-111,112,-122,-124,122,-124,-127,123,-102,109,-109,124,-126,-107,124,-113,-115,124,-102,112,-105,120,126,-114,118,-120,123,-125,-122,111,-108,114,-113,127,110,-102,108,-122,-124,111,-108,109,-128,-126,124,125,121,-115,119,-126,-126,121,-123,119,-126,120,117,-126,122,123,127,127,-124,125,-118,-125,124,-117,-127,-125,125,122,-126,126,122,-128,125,125,127,123,-127,126,122,-123,124,126,126,120,-127,123,124,-124,120,126,-122,122,-128,-126,121,125,125,125,124,119,122,126,120,127,-125,121,127,-125,-126,-127,-125,-124,127,122,124,124,120,117,124,127,120,-125,-125,-128,-123,-121,-126,-127,123,-127,-126,117,-125,123,118,-125,124,-128,-127,124,-120,-126,-128,-121,-122,-128,-124,-127,126,-127,123,-128,127,122,-121,-128,127,-120,127,-125,-125,-128,-128,120,124,-123,-128,126,127,124,-126,-120,-125,-122,-128,-125,-119,-125,-122,-123,123,-128,122,125,-125,121,-127,-127,-128,-124,-124,-125,-118,-127,-127,127,126,-128,127,-119,-122,-126,-115,-115,-120,-115,-121,-121,-122,123,-124,-124,118,-124,123,117,-120,124,125,-123,127,-121,-128,124,-125,125,124,124,125,122,123,121,121,127,-126,-124,-128,-125,-122,127,-126,-124,124,-125,124,119,-127,-127,121,122,125,124,126,-125,-124,-127,-126,-125,-126,126,127,125,124,-127,-125,-127,126,-122,-124,122,123,127,127,126,126,-125,-118,-126,-118,-113,-114,-120,-120,-121,-128,127,124,123,122,116,-121,-116,98,-102,-123,113,-114,119,-120,123,111,-114,-108,118,-106,-106,-110,-109,-125,-126,-109,93,125,-82,60,-114,-95,74,-100,108,116,-97,97,124}; } private static byte[] data3(){ return new byte[] {-77,102,-110,-110,-118,-109,120,114,-119,-101,-112,75,-65,125,96,-125,112,124,110,79,-115,-89,96,-109,-82,-109,-110,116,-106,-39,54,105,-60,71,100,99,114,-116,88,92,-52,-127,114,-84,-105,-81,112,116,-37,120,50,-54,88,100,96,78,-110,110,56,-62,-84,90,-76,-100,-92,-122,95,-51,-120,33,-63,96,97,101,85,-127,126,61,-81,-80,99,-87,-86,-100,123,-106,-78,83,123,-121,66,112,51,115,102,94,98,-55,114,-107,-89,-80,-117,-106,-81,-128,95,-85,60,111,81,82,124,95,106,-92,-88,123,-62,-77,-95,-103,-36,107,117,-74,50,-127,69,74,117,84,85,-84,-100,119,-61,-80,-91,-87,-65,-117,115,-92,57,115,84,50,116,66,105,-111,-101,122,-56,-84,-89,-65,-72,-121,109,-82,46,104,82,42,112,59,105,-111,-95,101,-41,-72,-111,-34,-86,119,-87,117,44,-97,16,94,91,58,122,-98,103,-100,-58,121,-48,-53,-104,-123,-84,66,120,94,20,125,46,85,-122,-117,97,-66,-84,-100,-27,-80,-108,-101,-110,54,-104,41,66,97,44,121,-123,114,123,-39,125,-57,-40,-100,-106,-77,72,122,121,0,122,44,81,-125,120,83,-46,-109,-97,-14,-89,-94,-81,121,67,-82,7,82,84,49,120,-126,88,-93,-51,111,-22,-55,-89,-96,-93,62,-106,76,23,108,34,95,127,112,112,-33,115,-60,-20,-85,-93,-84,101,96,-100,0,99,62,59,120,127,86,-73,-72,122,-4,-72,-81,-95,-107,64,-97,58,32,104,46,110,-122,107,-110,-39,125,-30,-42,-84,-97,-90,79,121,120,0,107,48,79,124,115,103,-49,127,-83,-19,-100,-95,-93,95,101,-107,2,91,60,60,121,121,89,-62,-94,-120,-17,-81,-83,-115,-117,79,-126,66,23,92,61,93,-122,115,-118,-44,-128,-44,-35,-98,-108,-87,55,-128,123,0,108,53,80,-119,114,102,-32,123,-77,-27,-97,-90,-96,98,99,-105,10,83,73,69,-123,-125,93,-47,-79,-122,-20,-73,-83,-120,-106,80,114,90,24,104,80,86,-97,-126,103,-19,-111,-69,-40,-106,-113,-80,39,115,-116,0,108,68,82,-104,118,94,-5,127,-91,-29,-108,-110,-90,71,93,-99,0,97,77,71,-113,-122,79,-22,-91,-119,-16,-94,-101,-105,-120,53,-105,49,41,111,65,103,-84,92,-117,-11,118,-41,-65,-122,-100,-94,16,-100,104,1,126,63,96,-90,85,-124,-4,98,-53,-58,-121,-101,-97,36,-109,104,0,-126,63,82,-90,98,107,-1,106,-73,-39,-119,-112,-84,64,100,-102,0,110,90,63,-95,126,70,-9,-113,-113,-33,-119,127,-89,69,52,-87,1,76,109,53,-110,-105,58,-29,-71,119,-33,-104,123,-81,109,35,-75,34,66,-118,61,-123,-71,60,-52,-41,112,-28,-98,119,-75,123,21,-67,59,52,-114,61,124,-70,66,-66,-25,106,-39,-86,-128,-105,-106,26,-118,98,17,-124,84,86,-65,111,109,-1,-120,-95,-54,-123,100,-83,77,29,-90,34,65,-112,64,-128,-40,57,-63,-29,108,-58,-102,91,-81,110,0,-70,62,35,-104,69,113,-53,69,-92,-4,103,-67,-78,99,-112,-97,6,-123,115,7,-111,99,76,-55,120,101,-1,-125,-121,-55,-127,83,-81,97,28,-107,54,81,-112,80,124,-33,72,-102,-18,108,-78,-93,76,-95,-124,0,-88,99,17,-89,87,105,-41,75,-105,-4,99,-86,-70,83,-101,-113,6,-101,105,20,-96,93,95,-53,91,-112,-12,105,-91,-65,90,-125,-85,25,107,-113,16,-120,-124,64,-59,-122,91,-9,-108,120,-54,120,76,-66,79,31,-75,54,65,-74,73,-124,-40,61,-71,-51,98,-71,-112,79,-75,88,21,-74,64,61,-89,86,-105,-71,86,-52,-56,114,-73,-97,97,-94,123,38,-103,88,52,-98,105,106,-63,108,-109,-42,116,-109,-77,102,85,-89,70,57,-120,74,97,-109,99,-119,-62,92,-95,-69,106,-95,-114,67,-102,123,11,-105,122,40,-96,-126,102,-53,101,-122,-40,103,-114,-80,77,-120,-107,20,-115,124,37,-100,-125,98,-65,112,-121,-35,99,-113,-75,89,110,-88,47,96,-107,44,-116,-103,81,-77,-102,108,-44,-117,112,-65,118,64,-77,110,35,-96,111,75,-86,125,124,-59,107,-106,-62,106,-103,-105,71,-105,127,21,-105,-121,41,-94,-107,103,-59,106,-113,-49,102,-112,-87,75,-113,-121,23,-102,118,39,-87,-120,92,-63,111,-123,-36,96,-121,-70,83,111,-81,45,99,-97,45,-125,-89,88,-95,-90,97,-61,-97,99,-79,-121,64,-99,122,41,-102,117,67,-89,127,100,-64,120,-122,-51,108,-128,-77,81,108,-73,47,92,-89,63,109,-81,97,-110,-85,84,-75,-97,97,-78,-122,68,-94,113,32,-94,112,60,-90,-126,107,-72,114,-115,-61,97,-119,-83,100,87,-102,76,67,-114,77,97,-102,118,123,-77,107,-103,-77,99,-97,-95,81,112,-94,67,96,-107,104,122,-112,-126,-114,-94,121,-84,-103,118,-97,-127,100,-116,122,66,-116,-126,86,-117,-102,114,-102,-111,127,-82,125,-118,-92,112,96,-98,91,77,-102,93,102,-103,119,122,-79,102,-103,-79}; } private static byte[] data4(){ return new byte[] {101,-101,-95,90,110,-88,58,100,-99,80,112,-104,103,-113,-89,85,-75,-91,104,-94,-100,79,-121,-103,49,-127,-128,68,127,-107,96,-101,-111,108,-72,-123,125,-84,126,85,-87,104,54,-105,105,70,-114,-120,98,-88,125,-126,-69,118,-119,-84,110,101,-87,88,72,-110,89,86,-119,123,122,-85,105,-98,-71,109,-105,-87,117,84,-94,99,72,-123,106,95,121,-116,115,-91,119,-115,-69,122,-124,-83,126,78,-96,101,67,125,107,93,-125,-119,113,-86,-128,-107,-68,-120,-119,-93,-126,75,-102,97,68,-122,104,88,-127,-122,118,-80,-126,-105,-73,-125,-117,-90,122,90,-102,95,70,123,109,84,-126,-120,120,-88,121,-94,-77,123,-112,-75,101,84,-94,82,79,-123,109,94,-118,-116,-121,-89,-128,-92,-76,121,-114,-86,100,86,-102,79,72,-127,100,95,-115,-119,-126,-94,-125,-94,-84,119,-118,-90,101,74,-102,85,64,122,113,92,-121,-113,-128,-80,125,-110,-70,118,-125,-92,117,68,-111,110,55,113,124,95,121,-100,120,-101,-109,-127,-67,-126,126,-97,-126,78,-114,120,58,117,123,98,-127,-101,121,-95,-108,-126,-76,-126,-127,-105,-123,81,-124,123,70,115,-127,110,114,-105,-121,-113,-108,127,-82,-115,122,-110,-114,82,108,-107,84,100,-118,119,94,-101,-104,-123,-91,118,-97,-104,114,-111,-104,99,97,-108,87,92,-125,114,105,-112,-115,126,-91,123,-101,-91,114,-120,-102,117,86,-109,109,72,121,126,102,118,-99,-126,-108,-116,-117,-90,124,117,-98,-117,70,-119,-113,65,110,-114,101,103,-101,-117,-116,-114,119,-87,-118,108,-105,-96,82,110,-101,78,94,-117,120,104,-113,-124,-122,-108,113,-102,-97,112,125,-79,111,80,-99,117,82,120,-118,102,121,-119,-126,-110,-125,-123,-92,-126,104,-83,-119,83,-127,-110,82,93,-117,107,97,122,-124,125,-121,119,-106,-95,102,-112,-87,109,101,-99,126,77,-126,-126,107,110,-116,-118,-127,-121,125,-84,-120,-122,-88,-120,105,126,-98,100,104,-126,119,100,120,-112,127,-118,126,-99,-107,112,-97,-93,124,105,-100,-127,79,116,-127,102,98,-124,-122,114,122,-110,-89,116,-122,-86,-123,112,-117,-107,90,97,-124,112,91,117,-118,117,-128,-121,-101,-123,-125,-92,-101,116,115,-97,115,83,117,126,92,105,-112,119,116,127,-111,-100,124,-106,-90,-117,111,-116,-110,90,100,-123,108,82,125,-118,101,123,-114,-116,-117,-126,-97,-100,118,-128,-107,120,81,118,126,92,96,-119,124,107,-110,-112,-116,-118,-116,-99,-109,110,-124,-109,92,95,127,113,89,113,-120,-127,116,-115,-102,-114,-121,-111,-91,-126,123,-125,-112,100,84,-117,116,89,122,-108,113,117,-102,-116,-118,-124,-108,-95,119,126,-109,-122,77,114,-123,100,98,126,-117,114,127,-115,-104,-118,118,-90,-107,121,-125,-119,126,95,115,-125,105,104,-124,125,116,-115,123,-105,-113,122,-81,-127,-123,-116,-125,124,114,117,122,108,104,-119,112,122,-116,109,-101,-126,-128,-89,115,-111,-118,124,123,118,111,118,107,108,-121,112,115,-123,121,-101,116,-111,-107,122,-114,-128,-113,115,103,127,112,103,123,123,119,124,123,-120,-111,109,-102,-106,122,-121,-121,126,124,101,-124,124,102,120,-121,112,120,-119,127,-119,-123,-120,-106,125,127,-116,-124,115,122,-128,121,117,126,121,-127,-127,121,-118,-112,119,-108,-119,126,-121,-128,123,-127,120,119,-125,109,124,-127,124,125,-125,-111,127,-114,-120,-119,-125,-126,-125,127,120,116,127,111,114,123,-126,117,-122,-117,-123,-118,-119,-118,-125,-126,124,-123,115,116,126,116,106,125,-126,121,-122,-126,-114,-115,-126,-112,-121,-128,-126,-126,120,116,122,112,117,124,125,-126,-121,125,-110,-118,-125,-115,-124,125,-126,-128,109,-128,114,109,-128,123,119,-116,125,-128,-104,126,-118,-121,126,-127,-123,113,123,121,107,127,123,119,-124,-119,118,-111,-123,-120,-118,126,126,-120,119,113,-122,108,114,-127,123,118,-118,119,-124,-117,123,-116,-125,118,-127,-123,108,-127,116,111,126,-128,121,-115,-125,126,-107,-128,-114,-118,125,127,-116,113,-128,-125,107,124,-125,125,-124,-117,123,-108,-119,-127,-115,-125,119,-121,120,114,-121,106,119,-122,124,-128,-111,118,-113,-114,123,-115,-125,119,-125,125,109,-119,110,113,-123,122,124,-112,117,-123,-109,122,-118,-122,121,126,-123,104,-122,121,105,-124,-126,122,-119,-121,123,-110,-121,127,-118,121,118,-122,111,113,-120,103,120,-119,121,-123,-111,113,-109,-116,122,-116,-127,115,-124,122,107,-115,106,116,-123,124,126,-109,120,-122,-107,121,-119,-124,115,126,-128,101,-123,123,106,-127,-124,126,-118,-117,122,-107,-122,123,-118,123,111,-119,112,108,-117,105,119,-115,122,-124,-101,114,-112,-112,122,-115,127,112,-122,124,99,-118,113,118,-125,123,-127,-107,120,-118,-105,124,-114,-123,118,-126,-128,101,-122,117,107,-123,122,120,-114,-122,126,-105,-126,-122,-115,118,119,-114,105,113,-120,103,124,-122,116,-120,-107,111,-103,-114,121,-113,-128,116,-110,114,111,-115,107,122,-119}; } private static byte[] data5(){ return new byte[] {118,-125,-107,112,-106,-114,122,-115,-128,117,-115,114,106,-117,106,115,-127,120,123,-107,112,-116,-107,119,-118,-127,116,-119,126,98,-118,118,109,-127,125,116,-108,123,120,-100,124,127,-117,115,124,-112,98,123,-120,104,-128,-122,113,-113,-115,108,-106,-121,121,-118,123,116,-115,108,112,-120,109,123,-120,118,-123,-105,113,-115,-112,123,-118,125,115,-115,122,104,-118,117,120,-124,-128,127,-109,125,-126,-109,125,-126,-125,118,123,-124,109,122,127,118,-127,-120,124,-122,-110,120,-119,-118,125,-127,123,117,-121,117,110,-119,113,124,-119,122,-123,-110,119,-121,-117,121,-120,122,114,-121,120,108,-120,118,119,-116,123,126,-109,122,-123,-111,118,-122,-127,109,-121,-126,104,-122,-126,114,-124,-121,122,-121,-120,123,-114,-128,122,-119,121,108,-117,122,105,-115,119,119,-111,117,-128,-106,110,-123,-109,111,-121,-124,103,-111,-128,101,-116,124,115,-108,117,116,-102,109,-128,-103,112,-125,-119,111,-114,-123,101,-118,125,107,-120,-126,113,-111,122,115,-116,117,121,-115,108,127,-104,93,127,-113,98,-114,-126,103,-99,118,106,-90,104,-124,-102,93,-111,-104,90,-109,-120,99,-103,125,112,-95,119,104,-79,100,126,-78,77,-106,-100,78,-101,-128,93,-99,114,111,-100,117,112,-91,113,120,-84,103,124,-100,109,123,-124,116,127,123,124,-126,-128,121,127,-110,113,-115,-109,108,-123,-112,112,113,-121,108,118,-124,114,-128,-117,107,-110,-114,105,-88,126,106,-101,-126,99,-126,122,108,125,114,-128,-120,113,123,-90,107,-122,-87,103,-118,-116,116,118,117,118,121,107,120,-118,117,121,-123,-105,111,-108,-105,121,-123,-127,-124,103,111,126,115,91,-123,-124,108,-127,-124,-103,120,-118,-95,-120,120,-121,-111,89,111,-120,102,100,-122,121,113,-119,119,-93,-126,116,-69,127,117,-106,-123,98,116,115,116,106,105,-113,119,122,-123,-98,-125,-125,-83,-125,-125,-126,-121,116,93,118,-126,88,107,-106,108,123,-114,-117,-101,-128,-103,-95,120,122,-108,119,82,125,124,88,106,-113,118,123,-123,-117,-85,112,-96,-77,111,-125,-97,113,92,-124,116,102,103,-121,-124,118,-126,-108,-94,111,-103,-87,113,-126,-116,119,97,110,116,107,94,126,-118,105,-121,-113,-105,-126,-125,-81,125,115,-112,-126,93,103,123,110,94,115,-115,112,-127,-117,-103,-118,123,-80,-120,116,-117,-124,107,96,119,116,99,103,-111,123,117,-114,-106,-111,118,-85,-108,117,127,-117,123,79,123,-127,94,95,-103,122,117,-110,-113,-96,119,-102,-94,121,120,-109,-128,81,121,-127,97,97,-109,124,120,-116,-115,-94,118,-110,-87,119,116,-106,124,84,126,125,97,105,-121,-127,125,-125,-112,-97,111,-108,-87,108,-128,-108,118,97,121,120,108,97,-121,-118,108,-116,-111,-110,122,-110,-95,116,-125,-118,-126,97,111,-126,107,94,-121,-120,107,-117,-119,-105,122,-111,-93,121,-123,-116,-121,93,118,-124,101,97,-120,-121,107,-120,-117,-103,122,-111,-88,119,-125,-114,-126,99,111,125,110,90,127,-113,98,-121,-115,-108,127,-110,-88,125,-123,-118,-119,97,104,125,107,88,127,-117,99,-122,-119,-103,-127,-125,-88,126,121,-122,-121,97,97,123,111,87,119,-112,103,-124,-112,-106,-117,-120,-82,-118,126,-114,-114,103,97,-126,115,92,114,-103,107,-125,-106,-105,-109,-127,-79,-112,124,-119,-114,109,91,123,121,91,105,-102,112,126,-109,-109,-104,124,-89,-103,119,-125,-117,114,86,120,118,92,99,-110,122,117,-108,-112,-98,126,-98,-96,120,126,-119,116,85,117,116,98,97,-111,125,115,-107,-118,-97,124,-98,-98,114,-122,-117,112,94,117,117,97,96,-106,125,107,-102,-116,-105,-127,-105,-95,117,127,-119,125,86,111,126,95,97,-109,-127,109,-101,-119,-101,-124,-116,-89,121,119,-116,-127,82,111,127,99,99,-119,-121,110,-107,-120,-99,-121,-124,-82,122,117,-112,-126,89,108,122,108,97,122,-107,111,-121,-112,-104,-120,126,-84,-126,116,-116,-124,102,100,124,118,96,114,-101,114,126,-104,-113,-115,124,-93,-115,117,-122,-120,108,94,-128,115,97,112,-104,114,124,-103,-121,-106,118,-96,-101,108,-125,-110,111,88,-124,116,100,110,-110,127,116,-113,-113,-104,114,-92,-91,106,-124,-107,122,90,124,126,109,104,-119,-113,111,-119,-113,-100,113,-113,-86,107,123,-117,-126,89,109,-125,111,94,-123,-110,107,-118,-117,-103,124,126,-87,124,108,-116,-119,90,106,-123,111,98,127,-112,116,-125,-119,-103,-121,116,-90,-123,107,-123,-119,100,100,-127,116,101,119,-108,123,-128,-118,-109,-113,113,-97,-111,109,-128,-117,115,95,125,-128,102,110,-106,127,126,-114,-116,-101,113,-109,-94,110,119,-111,127,87,121,-123,107,103,-113,-116,120,-118,-120,-93,117,-125,-86,116,113,-118,-119,95,109,-126,118,102,-125,-108,120,-119,-122,-96,-123,116,-89,-126,110,126,-118,102,97,-125,122,105,119,-103,125,-121,-119,-105,-105,105,-96,-113,110,118,-122,113,94,123,124,114,115,-109,-123,-122,-119,-113}; } private static byte[] data6(){ return new byte[] {-101,111,-111,-108,110,113,-124,118,95,119,125,115,116,-113,-119,-125,-116,-118,-99,117,-120,-102,111,112,-128,122,94,115,-128,120,114,-115,-111,127,-113,-123,-100,123,122,-98,112,107,-126,-128,95,112,-125,121,114,-125,-103,125,-123,-120,-115,-125,107,-106,122,102,121,-128,106,100,-128,127,114,118,-98,-122,127,-108,-116,-109,114,-113,-108,106,115,-119,119,91,125,-120,117,113,-102,-108,122,-108,-112,-103,123,124,-92,115,104,-126,-126,96,107,-122,126,113,-126,-97,-123,-121,-115,-103,-122,114,-101,-123,100,118,-124,105,99,120,-126,120,111,-102,-110,126,-117,-112,-103,114,-122,-106,109,105,125,124,95,108,127,-124,110,-124,-95,-128,-121,-120,-100,-128,111,-102,122,103,114,-127,107,96,126,-121,115,122,-99,-120,-124,-116,-114,-111,105,-114,-118,99,112,-125,115,95,123,-122,118,115,-101,-119,-127,-118,-121,-105,104,-123,-107,101,109,-124,121,99,117,-123,126,112,-110,-108,123,-119,-124,-107,116,121,-104,113,110,127,-121,104,110,-120,-127,111,-123,-102,124,-122,-123,-110,-118,107,-104,-121,107,120,-118,115,100,-127,-124,116,120,-105,-121,127,-120,-119,-102,105,-120,-100,106,116,-122,127,99,116,-125,125,111,-118,-108,122,-118,-122,-105,-128,115,-94,122,111,127,-123,108,102,-124,127,118,127,-102,-126,-120,-119,-112,-109,108,-100,-119,106,125,-124,116,98,125,-128,116,114,-108,-120,124,-115,-125,-101,114,-128,-98,109,113,-127,126,101,109,127,122,111,-128,-104,123,-121,-121,-111,-116,108,-101,-124,110,121,-125,119,97,122,-128,117,114,-113,-120,127,-120,-122,-100,115,-126,-100,112,118,127,-128,104,105,127,124,109,126,-106,122,-119,-121,-109,-118,114,-96,-127,112,124,-125,111,99,127,-128,112,116,-107,-126,-125,-117,-119,-103,113,-112,-105,112,119,-126,123,97,116,-125,117,112,-116,-112,126,-113,-124,-102,127,118,-93,118,110,126,125,102,107,127,123,116,125,-106,-125,-122,-119,-114,-110,110,-109,-118,107,120,-127,120,98,117,127,122,116,-117,-109,126,-117,-119,-104,126,121,-103,118,112,125,-128,108,106,127,-128,118,125,-104,-121,-125,-119,-112,-116,112,-113,-123,111,118,124,122,102,116,-122,124,112,-111,-111,124,-116,-116,-111,120,124,-108,119,113,119,-128,110,101,-127,-121,110,127,-100,127,-123,-115,-117,-118,113,-113,-120,108,115,-127,122,96,117,-126,116,111,-113,-116,122,-117,-122,-113,121,126,-108,116,115,122,-123,113,104,-122,-120,112,-123,-97,126,-121,-114,-118,-115,117,-118,-118,116,113,-121,-128,100,125,-117,121,119,-107,-117,126,-116,-125,-109,119,116,-102,119,110,126,-124,113,106,-122,-121,115,125,-103,127,127,-117,-121,-123,112,-113,-122,110,118,-125,-126,99,123,-113,120,113,-108,-121,124,-115,124,-110,122,117,-102,117,111,-122,-127,109,115,-123,127,115,127,-111,124,-128,-124,-115,-125,114,-111,-123,113,120,-117,119,105,-127,-124,115,115,-108,-128,120,-120,-123,-116,113,-126,-109,115,114,-125,-123,107,113,-121,123,112,-125,-116,122,-123,-122,-115,127,115,-104,127,111,-127,-123,115,107,127,-124,117,115,-108,-121,119,-117,-119,-117,120,-124,-112,122,115,-126,-122,105,113,-118,124,109,-119,-112,122,-123,-121,-117,-122,114,-109,-118,111,122,-118,115,105,-128,-128,121,117,-114,-116,119,-118,-117,-120,122,-128,-104,116,114,-121,127,108,113,-124,-128,111,-127,-107,119,-125,-114,-123,-123,118,-109,-122,109,-126,-117,110,109,-120,127,114,125,-108,-128,124,-116,-119,-121,116,-114,-117,108,121,-123,119,106,123,-124,122,112,-114,-113,114,-120,-118,-118,120,125,-111,118,109,-127,-123,104,116,-120,125,115,-123,-109,121,-126,-116,-121,-127,114,-112,-121,102,124,-115,109,108,-120,126,124,124,-118,-115,122,-125,-117,-125,118,-122,-119,111,122,-128,125,114,116,-117,-124,110,-114,-107,115,-117,-119,-126,-127,118,-115,-126,105,125,-113,105,116,-113,124,121,-126,-109,-126,123,-120,-117,-128,114,-113,-120,107,125,-116,117,114,-122,-123,124,123,-112,-121,118,-121,-122,-128,120,-127,-114,116,117,-121,-126,114,122,-116,-128,121,-121,-115,121,-127,-123,-125,-128,117,-114,127,112,-126,-120,120,116,-121,-123,124,122,-114,-122,117,-123,-122,-127,120,-127,-120,120,120,-119,-124,110,125,-117,124,115,-121,-115,116,-127,-122,127,-128,117,-118,-119,110,126,-112,116,113,-120,-126,116,125,-114,126,118,-120,-126,-127,120,-126,-107,112,114,-112,-126,104,125,-117,118,115,-122,-114,115,126,-119,-128,127,114,-115,-122,102,-127,-115,112,108,-119,-125,112,124,-112,-127,119,-117,-122,-123,126,-126,-110,118,119,-117,-127,111,124,-115,121,117,-116,-117,122,-125,-112,-122,-128,127,-115,-123,112,-128,-120,119,112,-124,-122,115,125,-115,-125,122,-116,-117,127,-125,-122,-122,122,118,-127,127,113,119,-124,125,116,-127,-117,127,124,-114,-125,123,-119,124,-126,126,119,-128,125,119,120,-128,126,121,-125,-119,126,-128,-113,126,-126,-124,122,-122,120,122,123,-128,122,117}; } private static byte[] data7(){ return new byte[] {-128,-123,123,123,-114,-124,-127,-122,-124,125,126,127,123,-124,110,122,-121,114,118,-120,-127,117,-125,-117,-122,120,-123,-116,115,-127,-128,123,127,116,127,-128,117,121,-123,123,124,-123,-121,-128,124,-116,-128,119,-124,-126,121,-126,126,119,-123,122,119,-123,-127,122,-124,-124,-125,-123,-128,-124,-127,126,126,-126,-126,123,124,124,-123,121,120,-120,-126,122,-126,-112,123,123,-116,125,121,-124,-128,-128,126,116,-118,-126,109,-123,-119,121,123,-115,-126,122,-127,-119,-128,118,-116,-125,120,-125,-124,124,127,-123,125,-127,127,-123,-127,124,-118,-128,127,-123,127,-123,127,123,-117,121,117,-112,125,109,127,-123,119,117,-120,-121,120,126,-116,127,120,-121,-126,124,123,124,-123,125,109,-125,-122,105,125,-114,122,121,-120,-115,124,124,-116,-123,118,-126,-123,118,125,123,126,116,124,-122,119,127,-119,-121,123,-123,-121,126,-128,126,-125,126,121,120,-126,122,115,-121,-125,122,-127,-113,-126,124,-119,-119,123,120,-120,124,119,-128,125,119,124,-127,120,-127,-122,-123,127,-124,-116,-127,125,-121,126,118,-125,118,127,-125,110,-123,-120,110,-128,-111,121,123,-115,-122,121,126,-122,-125,114,123,-114,116,115,-112,125,114,-120,-122,124,127,-124,-124,118,125,-123,125,120,-125,-124,117,126,-120,-128,127,-126,-121,-124,125,125,-122,125,119,-128,-125,-126,122,-124,-123,122,127,-120,-128,122,-119,-119,120,123,-112,119,113,-121,126,123,121,-119,-126,121,-120,-119,-127,123,-119,-120,121,124,-119,117,116,-127,121,119,121,-127,-126,124,-127,-119,-122,127,-116,-121,124,-126,-127,122,120,126,112,123,125,113,-128,127,123,126,-124,-126,-124,-118,-123,-125,127,127,-128,-125,118,127,-122,116,-128,-120,124,126,-121,-124,-127,-126,-125,-126,124,-127,-127,126,122,-128,-126,123,-128,-123,-116,119,-126,-114,115,-127,-123,119,117,-126,124,122,-128,120,-117,127,127,-117,-123,-127,-122,-121,-128,-122,118,-121,122,116,125,115,127,117,-125,-128,126,-124,127,-121,-128,-122,126,-124,-125,118,-128,-127,124,111,-123,126,115,-126,126,-128,117,-120,-118,126,126,-122,-119,122,126,-124,127,113,-123,125,110,-122,-125,119,122,-114,119,122,-115,118,-120,-124,123,-115,126,117,-117,120,114,-113,117,122,-124,122,-125,127,126,-115,127,115,-108,116,115,-116,108,125,-124,116,-125,-126,119,-118,-122,118,-117,-126,125,-124,125,127,-122,122,127,126,119,-120,112,124,-123,110,-121,123,127,-122,-125,-118,-120,-125,-121,-119,118,-125,127,115,123,119,127,118,124,-121,-121,121,-117,-107,115,-121,-123,120,122,116,126,122,118,123,-118,122,123,-110,-124,-126,-117,-114,-125,124,-127,127,117,123,123,119,-124,106,-125,-123,112,-113,-125,-122,-120,-118,-119,-120,127,-124,-125,110,125,122,116,121,120,126,126,127,-122,-118,127,-118,-115,-127,-128,-127,122,114,118,115,121,115,120,-123,125,-126,-113,-116,-122,-115,-117,-123,126,123,127,113,112,122,117,115,123,-128,126,-127,-118,-121,-125,-122,-125,-126,122,124,126,115,123,-125,123,-127,-118,-125,-119,-123,-125,-119,126,126,-126,121,122,125,119,121,126,127,125,127,-124,-124,-125,-126,-124,-120,124,-126,-125,123,125,122,125,127,125,-128,-123,127,-125,-120,-128,-123,-128,-128,-126,124,123,126,125,120,124,126,123,125,-125,-127,-126,-124,-127,-121,127,127,-125,123,123,122,127,125,122,-127,-127,127,-126,-122,-124,-119,-127,-126,-123,123,126,127,123,119,127,124,119,123,126,127,125,-127,-128,-126,125,-126,-124,124,-128,-125,-128,124,-127,-125,125,120,-126,-125,120,-128,-123,-123,127,-125,-117,126,127,-124,-124,123,124,-127,124,120,122,-124,120,120,-123,-126,126,126,-122,-127,123,-127,-124,120,122,-125,125,120,122,-124,127,121,-125,-121,-127,126,-116,-122,121,-127,-123,125,118,-127,-126,121,121,-124,127,121,-127,-122,-125,123,-121,-118,122,-128,-120,127,124,-127,-125,127,121,-127,-123,123,-127,-119,-125,127,-123,-117,127,122,-123,-126,119,122,-123,126,119,-128,-123,122,124,-125,-122,-127,124,-119,-127,119,-128,-124,120,122,-125,-127,119,124,-120,127,122,-126,-121,-126,124,-125,-120,118,123,-121,125,118,124,-124,123,120,-124,-125,123,-128,-123,-125,-127,-128,-121,126,118,-124,-127,119,122,-124,-125,121,127,-125,126,124,-128,-126,-127,125,-124,-124,117,-127,-128,120,123,127,-126,124,124,-124,-128,123,-125,-127,126,-127,-128,-125,121,125,-125,122,126,-126,-123,-128,127,-121,-126,121,-127,-124,121,127,125,127,125,120,-128,127,125,127,-122,-125,-128,-121,-125,125,-127,-126,124,-128,124,-128,-128,118,-126,127,125,-127,-125,-122,-126,-128,-123,-126,121,-127,125,123,126,122,-127,121,123,-125,126,126,-124,-121,-125,-128,-126,-124,121,126,-127,121,127,121,124,126,123,-126,-125,-124,-123,-121,-121,-125,-126,-122,127,122,-128,123,127,120,122,-123,122,125,-125,-123,-126,-126,-122,-123,125,126,-124,119,124,124,122,125,120,-123,-125,122,-124,-121,-125,-127,-123,-118,-128,121,-126}; } private static byte[] data8(){ return new byte[] {125,117,123,124,125,123,125,-122,124,127,-121,-121,-125,127,-121,-127,121,-128,-128,116,122,127,125,125,123,-120,-126,123,-121,-123,-127,127,-123,-124,119,124,-126,119,117,-127,126,125,125,-123,-121,122,-123,-121,-127,126,-126,-122,121,119,-128,126,118,-128,-126,126,-128,-125,-118,126,-127,-121,-124,127,124,-121,125,116,126,-126,119,122,-125,127,-126,127,-120,-123,125,-122,-124,126,124,-127,127,122,122,-127,125,116,-125,-123,-128,-128,-126,-123,127,127,-128,-124,122,122,-123,121,121,-125,126,120,-126,-125,127,-126,126,-122,-128,121,-125,-125,124,124,-126,127,124,126,127,-127,127,-126,-125,-126,-127,127,-124,125,127,-128,124,126,124,-126,-128,125,-127,-125,126,-127,-125,126,-126,125,125,-126,124,124,127,125,125,-127,-126,127,-127,-127,-125,127,127,-126,-127,125,120,-128,123,119,123,126,127,124,-127,-125,-125,-128,-124,-127,126,-126,127,126,124,125,-128,123,124,-125,-125,126,-125,-119,-125,-125,-122,-124,127,-128,127,126,126,119,127,125,121,-127,-126,125,-125,-123,-127,-123,-127,-125,-128,123,127,124,122,122,125,124,124,-128,-127,-127,-125,-122,-121,-124,-127,-123,-127,121,127,126,123,123,123,-128,125,126,-123,-125,125,-122,-120,-127,-126,-127,-127,123,122,127,124,120,123,-126,123,121,-124,-122,127,-128,-122,-121,-128,122,-124,126,116,127,125,120,123,123,127,127,126,-123,-122,126,-124,-120,-128,125,-126,127,120,123,123,125,125,121,-128,-126,123,-124,-120,-128,-122,-123,-126,-125,125,-127,127,120,125,127,123,121,-128,-127,124,-127,-123,-125,-125,-126,-124,-124,126,127,126,123,127,123,123,-128,121,-128,-125,125,-123,-126,-128,-122,-122,-126,-128,127,-128,126,124,126,124,125,124,125,-128,125,-126,-123,-127,-125,-124,-123,-127,126,-126,-128,121,-128,126,119,126,124,127,126,125,-124,-126,127,-125,-121,-128,-128,-127,127,124,125,126,124,126,123,-128,-128,122,-124,-124,-127,-124,-124,-124,-125,-127,-128,-126,123,123,125,121,124,125,126,124,127,-127,-124,-123,-125,-122,-124,-127,-127,-126,123,124,124,121,125,122,124,-127,126,-127,-123,-124,-124,-121,-123,-125,-126,127,126,122,122,123,122,121,123,-128,126,126,-125,-123,-124,-126,-122,-121,127,126,-127,122,120,123,122,122,123,123,-126,127,127,-119,-122,-127,-121,-119,127,-128,-127,125,121,120,123,122,121,125,-127,-128,-128,-123,-121,-123,-125,-120,-123,124,127,-128,123,118,122,126,121,123,-127,-126,-127,-126,-123,-118,-126,-126,-120,-128,125,127,125,122,118,125,-128,119,-128,-122,127,-125,-122,-122,-124,-124,-125,-128,-128,124,123,125,120,122,126,124,126,-127,-126,-125,-124,-125,-123,-124,-127,126,-128,127,120,122,127,120,120,127,127,126,-127,-123,-126,-126,-124,-126,-125,127,125,-127,122,119,127,123,120,126,127,-128,-128,-126,-122,-127,-128,-122,-126,126,-126,127,124,127,125,124,126,126,126,-126,127,-128,-124,-125,-128,-125,-124,125,126,127,127,120,123,-128,121,123,-128,-128,125,-128,-124,-126,-128,-126,-124,-128,126,-128,-124,124,123,-125,-128,124,-128,-124,-128,126,-124,-123,-128,-127,-123,-127,127,-128,-127,-128,123,127,-126,127,126,-125,-126,127,-126,-126,-126,127,-127,-125,126,126,127,126,124,126,127,126,127,127,-128,-127,-128,-128,-127,-128,126,-127,-127,125,125,-127,125,124,-127,127,125,-127,-127,-128,-126,-128,-126,-128,127,-126,-128,127,127,127,126,127,126,126,-127,126,-128,-126,127,127,-127,-128,125,-128,126,126,127,125,-128,125,123,-128,-127,124,-126,-126,127,-127,126,-128,126,125,124,127,126,123,127,127,125,124,-124,-128,125,-125,-126,-128,127,-125,127,125,125,-128,-128,122,127,-128,126,127,-127,-126,-126,-127,127,-122,127,126,-122,127,123,127,-127,123,123,-128,-127,125,125,-122,-126,127,-126,-123,-127,125,-125,127,124,127,-128,125,122,-128,-128,125,126,-125,-127,127,-126,-127,-127,127,126,-128,127,123,125,-128,123,124,-128,-128,127,126,-125,-126,-128,-127,-125,-127,124,-128,126,124,124,-128,127,123,-126,-126,-128,-127,-126,-126,-126,-127,-126,-126,126,-128,127,124,125,125,126,125,127,-128,127,-127,-127,-126,-126,-128,127,-127,127,124,127,124,125,124,125,125,-128,126,-127,-124,127,-126,-124,-128,127,-126,127,124,125,125,126,124,124,-126,127,125,-125,-125,-127,-128,-125,-126,126,-126,127,125,125,126,126,124,125,-128,127,-128,-127,-127,-126,127,-127,-126,125,127,-126,124,125,-127,124,126,-127,126,-128,-127,-128,-126,-128,-128,-127,-128,126,126,127,124,127,126,126,-127,126,-125,-126,-126,-126,-127,-126,127,127,-128,127,123,126,127,125,127,126,-126,-126,-128,-126,-125,-125,127,-127,-126,127,126,-128,126,124,-128,126,126,-128,127,-128,-127,-128,-127,-125,125,-128,-127,125,126,-128,126,125,-125,124,126,-125,125,127,-126,-127,127,-128,127,-126,126,124,-125,124,124,-127,-127,125,-127,-126,-126,127,-128,-121,124,124,-124,126,122,126,127,125,125,125,-125,-128,125,-123,-126,125}; } private static byte[] data9(){ return new byte[] {-128,-125,126,125,127,-127,123,123,-124,125,126,127,-127,-126,124,-126,-127,123,123,127,124,124,126,125,127,124,-128,-126,125,127,-125,-127,126,-126,-128,-128,127,126,-125,127,125,-128,-128,125,127,-127,127,127,-127,-125,-127,126,-126,-126,125,-128,-126,127,125,125,-126,127,124,-125,-127,127,127,-124,-126,125,-126,-127,123,126,-127,124,125,126,-128,-126,125,-127,-123,127,127,-124,-127,127,-128,-128,-127,125,126,-127,126,125,-127,-127,126,-126,-127,-127,-128,-128,-127,-128,126,-127,-127,124,127,127,126,-128,127,-127,-126,-127,-126,-125,-128,-128,-125,127,126,-127,127,125,127,124,127,-128,122,-128,-126,125,-128,-126,126,-127,-127,126,-126,127,125,127,126,125,127,126,125,-127,-128,127,-127,-128,-127,-128,126,-128,-128,125,126,127,126,126,125,126,127,126,127,-127,127,-128,-127,127,-128,-128,127,-128,126,126,-128,126,124,-127,-128,124,-128,-127,126,-127,-128,-128,-126,126,-127,-126,126,127,-128,125,125,126,127,127,126,127,-126,-128,-127,-126,-126,-127,-128,-127,-127,127,126,127,-128,126,127,-127,126,127,-125,-128,-127,-124,-127,-127,-128,-128,-126,126,125,-127,127,124,-128,-127,127,-128,-125,-126,-126,-127,-126,-125,126,-128,-126,124,123,-127,127,124,-128,-126,-128,-128,-126,-124,-127,127,-125,-126,125,126,127,125,123,126,126,124,124,-128,-126,125,-126,-124,-128,-128,-126,-126,126,125,126,127,123,125,-128,124,126,-126,-127,-128,-125,-125,-126,-127,-128,-126,125,125,127,126,122,125,-128,123,127,-127,-127,-128,-127,-123,-125,-127,-126,-124,126,126,-128,127,124,124,-128,127,126,127,-124,-127,126,-122,-125,-128,-127,-125,-128,126,127,-128,126,122,-127,-128,123,127,-126,-128,-128,-126,-126,-126,127,-127,-125,126,126,-127,127,123,-128,-128,125,127,-128,-126,-128,-128,-125,-126,-128,-127,-125,127,126,-128,127,125,126,127,126,126,127,-127,-128,-128,-127,-127,-128,-127,-127,-128,127,127,-128,125,125,-128,124,124,127,126,126,-128,127,-128,-128,-128,-127,-128,127,127,-128,125,125,-128,125,125,127,127,126,-128,-128,-128,-126,-128,-127,-128,-127,-128,-128,127,127,126,125,126,126,126,126,127,127,-128,-127}; } private static byte[] getData(){ byte[] data = new byte[9663]; System.arraycopy(data0(), 0, data, 0, 1024); System.arraycopy(data1(), 0, data, 1024, 1024); System.arraycopy(data2(), 0, data, 2048, 1024); System.arraycopy(data3(), 0, data, 3072, 1024); System.arraycopy(data4(), 0, data, 4096, 1024); System.arraycopy(data5(), 0, data, 5120, 1024); System.arraycopy(data6(), 0, data, 6144, 1024); System.arraycopy(data7(), 0, data, 7168, 1024); System.arraycopy(data8(), 0, data, 8192, 1024); System.arraycopy(data9(), 0, data, 9216, 447); return data; } /** Constructs a new AudioClip with the data from Jawa Sound Effect.wav. */ public Jawa(){ data = getData(); format = new AudioFormat(AudioFormat.Encoding.PCM_UNSIGNED, (float)(11025.0), 8, 1, 1, (float)(11025.0), false); lineInfo = new DataLine.Info(SourceDataLine.class, format, AudioSystem.NOT_SPECIFIED); try{ AudioSystem.getLine(lineInfo); } catch(IllegalArgumentException ex){ lineInfo = null; } catch(LineUnavailableException e){} } /** A separate thread for playing Jawa Sound Effect.wav. */ private class PlayThread extends Thread { private byte[] data; private AudioFormat format; private DataLine.Info lineInfo; private SourceDataLine line = null; private boolean playing = true; public PlayThread(byte[] d, AudioFormat f, DataLine.Info i){ data = d; format = f; lineInfo = i; } public void run(){ try{ line = (SourceDataLine) AudioSystem.getLine(lineInfo); line.open(format, AudioSystem.NOT_SPECIFIED); line.start(); int written = 0; int available; while(written < data.length && playing){ available = Math.min(line.available(), data.length - written); line.write(data, written, available); written += available; } int frames = data.length / format.getFrameSize(); while(line.getFramePosition() < frames && playing) Thread.sleep(0); } catch(InterruptedException ex){ playing = false; } catch(LineUnavailableException ex){} if(line != null){ line.stop(); line.flush(); line.close(); } playing = false; } public void interrupt(){ playing = false; } public boolean isPlaying(){ return playing; } } /** A separate thread for looping play of Jawa Sound Effect.wav. */ private class LoopThread extends Thread { private Jawa clip; private boolean looping = true; public LoopThread(Jawa c){ clip = c; } public void run(){ while(looping){ clip.play(); while(clip.isPlaying() && looping){ try{ Thread.sleep(0); } catch(InterruptedException ex){ looping = false; break; } } } if(!clip.isLooping()) clip.stop(); } public void interrupt(){ looping = false; } public boolean isLooping(){ return looping; } } /** Plays Jawa Sound Effect.wav from the beginning, even if it is already playing or looping. */ public void play(){ if(lineInfo == null) return; doPlay(); } private synchronized void doPlay(){ doStopPlay(); playThread = new PlayThread(data, format, lineInfo); playThread.start(); } /** Plays Jawa Sound Effect.wav continuously until stopped. */ public void loop(){ if(lineInfo == null) return; doLoop(); } private synchronized void doLoop(){ doStopLoop(); loopThread = new LoopThread(this); loopThread.start(); } /** Stops play and looping of Jawa Sound Effect.wav. */ public void stop(){ if(lineInfo == null) return; doStop(); } private synchronized void doStop(){ doStopPlay(); doStopLoop(); } private void doStopPlay(){ if(playThread == null) return; if(playThread.isPlaying()) playThread.interrupt(); playThread = null; } private void doStopLoop(){ if(loopThread == null) return; if(loopThread.isLooping()) loopThread.interrupt(); loopThread = null; } /** Tests if Jawa Sound Effect.wav is currently playing or looping. * @return true if playing or looping, false otherwise */ public boolean isPlaying(){ if(lineInfo == null) return false; return doIsPlaying(); } private synchronized boolean doIsPlaying(){ if(loopThread == null && playThread == null) return false; else if(loopThread == null) return playThread.isPlaying(); else if(playThread == null) return loopThread.isLooping(); else return loopThread.isLooping() && playThread.isPlaying(); } /** Tests if Jawa Sound Effect.wav is currently looping. * @return true if looping, false otherwise */ public boolean isLooping(){ if(lineInfo == null) return false; return doIsLooping(); } private synchronized boolean doIsLooping(){ if(loopThread == null) return false; else return loopThread.isLooping(); } }