Package java.io

Examples of java.io.RandomAccessFile.writeBytes()


                fout.writeBytes(charString);

                /* DKS changed from AFESC to DMAAC 8/2/94 */
                /* Producer: */
                //  Should be OpenMap BBN, I guess.
                fout.writeBytes(producer);

                /*
                 * PBF - If group is polar, change boundaries from
                 * rect coordinates to lat-lon -- 6-19-94
                 */
 
View Full Code Here


            /* Now write frames */

            /* security classif */
            charArray[0] = 'U';
            charString = new String(charArray);
            fout.writeBytes(charString);

            /* frame file index tbl offset */
            fout.writeInt(0);

            /* # of frame file index records */
 
View Full Code Here

                            + framename);
                    framename = framename.substring(0, 12);
                }

                /* frame file name */
                fout.writeBytes(framename);

                String seriesCode = framename.substring(9, 11);

                /* Check for Overview image: affects GEOREF */
                if (!seriesCode.equalsIgnoreCase("OV")
View Full Code Here

                    if (Debug.debugging("maketoc"))
                        Debug.output("Overview image has no GEOREF");
                    georef = "000000";
                } /* else */

                fout.writeBytes(georef);

                /* classification */
                // HACK - assumes unclassified data.
                fout.writeBytes(charString);

View Full Code Here

                fout.writeBytes(georef);

                /* classification */
                // HACK - assumes unclassified data.
                fout.writeBytes(charString);

                fout.writeBytes(head.country);
                fout.writeBytes(head.release);
            } /* for i (each frame file) */

 
View Full Code Here

                /* classification */
                // HACK - assumes unclassified data.
                fout.writeBytes(charString);

                fout.writeBytes(head.country);
                fout.writeBytes(head.release);
            } /* for i (each frame file) */

            Debug.message("maketoc",
                    "MakeToc: *** writing directory section ***");
 
View Full Code Here

                /* classification */
                // HACK - assumes unclassified data.
                fout.writeBytes(charString);

                fout.writeBytes(head.country);
                fout.writeBytes(head.release);
            } /* for i (each frame file) */

            Debug.message("maketoc",
                    "MakeToc: *** writing directory section ***");

 
View Full Code Here

                 * to align on word bndary!!??
                 */
                fout.writeShort((short) (uniq_dir[j].length()));

                /* pathname */
                fout.writeBytes(uniq_dir[j]);
            } /* for j (each uniq directory) */

            /* No color table index section */

            /*
 
View Full Code Here

                Object o = comboSQLCommands.getItemAt(i);
                if (o != null && o instanceof QueryObject) {
                    String query = ((QueryObject) o).getQryString();
                    query = query.replaceAll("\r", " ");
                    query = query.replaceAll("\n", " ");
                    access.writeBytes(query + '\n');
                }
            }
        } catch (Exception e) {
            logger.error(DcResources.getText("msgFileSaveError", queryFile.toString()), e);
        }
View Full Code Here

  {
    try {
      RandomAccessFile w =
        new RandomAccessFile( target, "rw" );;
      w.seek( w.length() );
      w.writeBytes( s );
      w.close();
    } catch ( Exception e ) {
      System.out.println("Debug output file write failed");
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.