Searched refs:dos (Results 1 - 25 of 76) sorted by relevance

1234

/openjdk10/jdk/test/java/io/DataOutputStream/
H A DWriteUTF.java34 DataOutputStream dos = new DataOutputStream(baos);
35 dos.writeUTF("Hello, World!"); // 15
36 dos.flush();
37 if (baos.size() != dos.size())
/openjdk10/jdk/test/java/time/tck/java/time/serial/
H A DTCKLocalDateTimeSerialization.java88 try (DataOutputStream dos = new DataOutputStream(baos) ) {
89 dos.writeByte(5);
90 dos.writeInt(2012);
91 dos.writeByte(9);
92 dos.writeByte(16);
93 dos.writeByte(22);
94 dos.writeByte(17);
95 dos.writeByte(59);
96 dos.writeInt(459_000_000);
H A DTCKLocalTimeSerialization.java97 try (DataOutputStream dos = new DataOutputStream(baos) ) {
98 dos.writeByte(4);
99 dos.writeByte(-1 - 22);
108 try (DataOutputStream dos = new DataOutputStream(baos) ) {
109 dos.writeByte(4);
110 dos.writeByte(22);
111 dos.writeByte(-1 - 17);
120 try (DataOutputStream dos = new DataOutputStream(baos) ) {
121 dos.writeByte(4);
122 dos
[all...]
H A DTCKZonedDateTimeSerialization.java103 try (DataOutputStream dos = new DataOutputStream(baos) ) {
104 dos.writeByte(6);
105 dos.writeInt(2012); // date
106 dos.writeByte(9);
107 dos.writeByte(16);
108 dos.writeByte(22); // time
109 dos.writeByte(17);
110 dos.writeByte(59);
111 dos.writeInt(470_000_000);
112 dos
[all...]
H A DTCKOffsetDateTimeSerialization.java98 try (DataOutputStream dos = new DataOutputStream(baos) ) {
99 dos.writeByte(10); // java.time.Ser.OFFSET_DATE_TIME_TYPE
100 dos.writeInt(2012);
101 dos.writeByte(9);
102 dos.writeByte(16);
103 dos.writeByte(22);
104 dos.writeByte(17);
105 dos.writeByte(59);
106 dos.writeInt(464_000_000);
107 dos
[all...]
H A DTCKZoneOffsetSerialization.java86 try (DataOutputStream dos = new DataOutputStream(baos) ) {
87 dos.writeByte(8);
88 dos.writeByte(6); // stored as quarter hours
97 try (DataOutputStream dos = new DataOutputStream(baos) ) {
98 dos.writeByte(8);
99 dos.writeByte(-10); // stored as quarter hours
108 try (DataOutputStream dos = new DataOutputStream(baos) ) {
109 dos.writeByte(8);
110 dos.writeByte(127);
111 dos
[all...]
H A DTCKLocalDateSerialization.java95 try (DataOutputStream dos = new DataOutputStream(baos) ) {
96 dos.writeByte(3);
97 dos.writeInt(2012);
98 dos.writeByte(9);
99 dos.writeByte(16);
H A DTCKZoneIdSerialization.java94 try (DataOutputStream dos = new DataOutputStream(baos) ) {
95 dos.writeByte(7);
96 dos.writeUTF("Europe/London");
162 try (DataOutputStream dos = new DataOutputStream(baos)) {
163 dos.writeShort(ObjectStreamConstants.STREAM_MAGIC);
164 dos.writeShort(ObjectStreamConstants.STREAM_VERSION);
165 dos.writeByte(ObjectStreamConstants.TC_OBJECT);
166 dos.writeByte(ObjectStreamConstants.TC_CLASSDESC);
167 dos.writeUTF(serClass);
168 dos
[all...]
H A DTCKOffsetTimeSerialization.java98 try (DataOutputStream dos = new DataOutputStream(baos) ) {
99 dos.writeByte(9); // java.time.Ser.OFFSET_TIME_TYPE
100 dos.writeByte(22);
101 dos.writeByte(17);
102 dos.writeByte(59);
103 dos.writeInt(464_000_000);
104 dos.writeByte(4); // quarter hours stored: 3600 / 900
H A DTCKMonthDaySerialization.java93 try (DataOutputStream dos = new DataOutputStream(baos) ) {
94 dos.writeByte(13); // java.time.temporal.Ser.MONTH_DAY_TYPE
95 dos.writeByte(9);
96 dos.writeByte(16);
H A DTCKInstantSerialization.java85 try (DataOutputStream dos = new DataOutputStream(baos) ) {
86 dos.writeByte(2);
87 dos.writeLong(654321);
88 dos.writeInt(123456789);
H A DTCKYearMonthSerialization.java94 try (DataOutputStream dos = new DataOutputStream(baos) ) {
95 dos.writeByte(12); // java.time.temporal.Ser.YEAR_MONTH_TYPE
96 dos.writeInt(2012);
97 dos.writeByte(9);
/openjdk10/jdk/test/javax/imageio/stream/
H A DReadUnsignedIntTest.java42 DataOutputStream dos = new DataOutputStream(baos);
44 dos.writeInt(1);
45 dos.writeInt(0x7fffffff);
46 dos.writeInt(0x8fffffff);
47 dos.writeInt(0xffffffff);
49 dos.close();
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/
H A DClassWriter.java42 protected DataOutputStream dos; field in class:ClassWriter
76 dos = new DataOutputStream(os);
84 dos.writeInt(0xCAFEBABE);
97 dos.flush();
101 dos.writeShort((short)klass.minorVersion());
102 dos.writeShort((short)klass.majorVersion());
107 dos.writeShort(index);
113 dos.writeShort((short) len);
191 dos.writeByte(cpConstType);
193 dos
[all...]
/openjdk10/jdk/test/java/util/jar/JarEntry/
H A Dtest.jar ... .io.File f java.io.DataOutputStream dos boolean inPaintMethod public void init () public void paint (java. ...
/openjdk10/jdk/test/java/util/jar/JarFile/
H A Dbogus-signerinfo-attr.jar ... .io.File f java.io.DataOutputStream dos boolean inPaintMethod public void init () public void paint (java. ...
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/
H A DAnnotationElementValue.java47 public void dump(final DataOutputStream dos) throws IOException argument
49 dos.writeByte(super.getType()); // u1 type of value (ANNOTATION == '@')
50 annotationEntry.dump(dos);
H A DRuntimeInvisibleAnnotations.java65 public final void dump(final DataOutputStream dos) throws IOException argument
67 super.dump(dos);
68 writeAnnotations(dos);
H A DRuntimeVisibleAnnotations.java64 public final void dump(final DataOutputStream dos) throws IOException argument
66 super.dump(dos);
67 writeAnnotations(dos);
H A DElementValuePair.java76 protected void dump(final DataOutputStream dos) throws IOException { argument
77 dos.writeShort(elementNameIndex); // u2 name of the element
78 elementValue.dump(dos);
H A DClassElementValue.java66 public void dump(final DataOutputStream dos) throws IOException argument
68 dos.writeByte(super.getType()); // u1 kind of value
69 dos.writeShort(idx);
/openjdk10/jdk/test/java/time/tck/java/time/chrono/serial/
H A DTCKChronoLocalDateSerialization.java120 try (DataOutputStream dos = new DataOutputStream(baos) ) {
121 dos.writeByte(dateType);
122 dos.writeInt(date.get(YEAR));
123 dos.writeByte(date.get(MONTH_OF_YEAR));
124 dos.writeByte(date.get(DAY_OF_MONTH));
152 try (DataOutputStream dos = new DataOutputStream(baos) ) {
153 dos.writeByte(ObjectStreamConstants.TC_BLOCKDATA);
154 dos.writeByte(6); // 6 bytes follow
155 dos.writeInt(date.get(YEAR));
156 dos
[all...]
/openjdk10/jdk/test/sun/security/x509/GeneralName/
H A DEncode.java41 DerOutputStream dos = new DerOutputStream();
42 gn.encode(dos);
43 DerValue dv = new DerValue(dos.toByteArray());
/openjdk10/jdk/test/sun/util/calendar/zi/
H A DGen.java71 DataOutputStream dos = new DataOutputStream(fos);
74 dos.write(ZoneInfoFile.JAVAZI_LABEL, 0,
78 dos.writeByte(ZoneInfoFile.JAVAZI_VERSION);
92 dos.writeByte(ZoneInfoFile.TAG_Transition);
94 dos.writeShort((size * 8) & 0xFFFF);
104 dos.writeLong((transitions.get(i).longValue() << 12)
112 dos.writeByte(ZoneInfoFile.TAG_Offset);
114 dos.writeShort((size * 4) & 0xFFFF);
116 dos.writeInt(gmtoffset.get(i));
129 dos
[all...]
/openjdk10/jdk/test/java/security/MessageDigest/
H A DTestDigestIOStream.java156 DigestOutputStream dos = new DigestOutputStream(baos,
166 dos.on(enDigest);
172 dos.write(k);
174 dos.write(k);
179 dos.on(enDigest);
187 dos.write(buffer, 0, k);
189 dos.write(buffer, 0, k);
195 dos.on(enDigest);
202 dos.write(k);
204 dos
[all...]

Completed in 196 milliseconds

1234