public override void  defineBitsJPEG2(DefineBits tag)
		{
			defineBits(tag);
		}
		public override void  defineBits(DefineBits tag)
		{
			encodeTagHeader(tag.code, 2 + tag.data.Length, true);
			int id = dict.add(tag);
			writer.writeUI16(id);
			writer.write(tag.data);
		}
Esempio n. 3
0
 public override void  defineBitsJPEG2(DefineBits tag)
 {
     tags.Add(tag);
 }
Esempio n. 4
0
		public override void  defineBitsJPEG2(DefineBits tag)
		{
			open(tag);
			out_Renamed.Write(" id='" + id(tag) + "'");
			
			if (external)
			{
				System.String path = externalDirectory + externalPrefix + "image" + dict.getId(tag) + ".jpg";
				
				//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
				out_Renamed.WriteLine(" src='" + path + "' />");
				try
				{
					//UPGRADE_TODO: Constructor 'java.io.FileOutputStream.FileOutputStream' was converted to 'System.IO.FileStream.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioFileOutputStreamFileOutputStream_javalangString_boolean'"
					System.IO.FileStream image = SupportClass.GetFileStream(path, false);
					SupportClass.WriteOutput(image, tag.data);
					image.Close();
				}
				catch (System.IO.IOException e)
				{
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("<!-- error: unable to write external asset file " + path + "-->");
				}
			}
			else
			{
				out_Renamed.Write(" encoding='base64'");
				end();
				outputBase64(tag.data);
				close(tag);
			}
		}
 public virtual void  defineBits(DefineBits tag)
 {
 }
 public virtual void  defineBitsJPEG2(DefineBits tag)
 {
 }