Searched refs:CONTENT (Results 1 – 4 of 4) sorted by relevance
43 private static final char[] CONTENT = "large file!\n".toCharArray(); field in ScannerParseLargeFileBenchmarkTest.FakeLargeFile60 int contentIndex = count % CONTENT.length; in read()63 buffer[bufferIndex++] = CONTENT[contentIndex++]; in read()64 if (contentIndex == CONTENT.length) { in read()
44 …private final String CONTENT = "The best things in life are nearest: Breath in your nostrils, ligh… field in FileChannelLockingTest58 writer.write(CONTENT); in setUp()
59 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; field in FileChannelTest70 CONTENT_AS_BYTES = CONTENT.getBytes("iso8859-1");77 private static final int CONTENT_LENGTH = CONTENT.length();1860 mapped = readWriteFileChannel.map(MapMode.READ_ONLY, 0, CONTENT in test_map_ReadOnly()1897 assertEquals(CONTENT, new String(checkBuffer.array(), "iso8859-1")); in test_map_Private()1901 mapped.put(("test" + CONTENT).getBytes("iso8859-1")); in test_map_Private()1925 mapped = readWriteFileChannel.map(MapMode.READ_WRITE, 0, CONTENT in test_map_ReadWrite()1931 String checkString = "test" + CONTENT.substring(4); in test_map_ReadWrite()1939 mapped.put(("test" + CONTENT).getBytes("iso8859-1")); in test_map_ReadWrite()1955 assertEquals(CONTENT.length() - 10, mapped.capacity()); in test_map_ReadWrite_NonZeroPosition()[all …]
43 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; field in OldFileChannelTest55 private static final int CONTENT_LENGTH = CONTENT.length();57 private static final byte[] CONTENT_AS_BYTES = CONTENT.getBytes();778 String test = CONTENT.substring(pos); in test_writeLByteBufferJ_NonZeroPosition()