Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for readText (2.75 sec)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

         * @param path
         *            The file path. Must not be {@literal null} or empty.
         * @return The text read from the file.
         */
        public static String readText(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, Charset.defaultCharset().name());
        }
    
        /**
         * Reads text from a file using the default encoding.
         *
         * @param file
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

                it.writeText(it.readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>"))
            }
            repoDir.get().asFileTree.matching { include("**/*.module") }.forEach {
                val content = it.readText()
                    .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jul 02 12:28:02 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                            }
                        ]
                    }
                """)
            val actualFirstJson = loadChangesJson(firstAcceptedApiChangesFile.readText())
            val actualSecondJson = loadChangesJson(secondAcceptedApiChangesFile.readText())
    
            assertEquals(expectedFirstJson, actualFirstJson)
            assertEquals(expectedSecondJson, actualSecondJson)
        }
    
        private
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Mar 14 02:17:00 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

                    writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>"))
                }
                localRepository.get().asFileTree.matching { include("**/*.module") }.forEach {
                    val content = it.readText()
                        .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 30 16:56:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/GradleSubprojectProvider.kt

        private val jsonFile: File,
    ) : GradleSubprojectProvider {
        private val objectMapper = ObjectMapper().registerKotlinModule()
    
        override val subprojects = objectMapper.readValue<List<Map<String, Any>>>(jsonFile.readText()).map { toSubproject(it) }
    
        private val nameToSubproject = subprojects.map { it.name to it }.toMap()
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

                        generateForFile(this)
                    }
                }
            }
        }
    
        private fun generateForFile(file: FileTreeElement) {
            val fileContent = file.file.readText()
            val relativePath = file.relativePath.toString()
            require(!fileContent.contains("'''")) {
                "The class with class='autoTested' can't contains triple quotes: $relativePath"
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

      }
    
      @Test
      fun urlConnection() {
        val conn = engine.openConnection(URL("https://google.com/robots.txt")) as HttpURLConnection
    
        val text =
          conn.inputStream.use {
            it.bufferedReader().readText()
          }
    
        assertEquals(200, conn.responseCode)
    
        assertTrue(text.contains("Disallow"))
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/ReaderUtil.java

         * </p>
         *
         * @param reader
         *            the character input stream to read from (must not be {@literal null})
         * @return the text read from the reader
         */
        public static String readText(final Reader reader) {
            assertArgumentNotNull("reader", reader);
    
            final StringBuilder buf = new StringBuilder(BUF_SIZE);
            CopyUtil.copy(reader, buf);
            return new String(buf);
        }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt

            val sType = object : TypeToken<BuildProjectToSubprojectTestClassTimes>() {}.type
            val buildProjectClassTimes = gson.fromJson<BuildProjectToSubprojectTestClassTimes>(buildClassTimeJson.readText(), sType)
    
            val result = mutableMapOf<TestCoverage, List<SmallSubprojectBucket>>()
            for (stage in model.stages) {
                for (testCoverage in stage.functionalTests) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Apr 10 15:09:32 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

            val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid }
            val testCoverageAndBuckets: List<Map<String, Any>> = objectMapper.readValue(testBucketsJson.readText())
            testCoverageAndBuckets.associate { testCoverageAndBucket ->
                val testCoverage: TestCoverage = uuidToTestCoverage.getValue(testCoverageAndBucket["testCoverageUuid"].toString().toInt())
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Sep 24 08:38:33 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top