{"id":206,"date":"2012-11-11T19:22:03","date_gmt":"2012-11-11T19:22:03","guid":{"rendered":"http:\/\/ilias-laptop\/examples\/core-java\/class\/find-a-file-in-classpath\/"},"modified":"2013-07-18T20:38:23","modified_gmt":"2013-07-18T17:38:23","slug":"find-a-file-in-classpath","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/","title":{"rendered":"Find a file in classpath"},"content":{"rendered":"<p>In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, <code><a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/io\/File.html\" target=\"_blank\">File<\/a> findFileOnClassPath(final String fileName)<\/code> that reads a fileName and returns the File. The method is described below:<\/p>\n<ul>\n<li>It uses the <code>System.getProperty(String key)<\/code> to find the classpath of java and the path separator used.<\/li>\n<li>It creates a new <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/util\/StringTokenizer.html\" target=\"_blank\">StringTokenizer<\/a> to parse the classpath, using the path separator as a delimiter.<\/li>\n<li>It gets the tokens of the StringTokenizer, using <code>hasMoreTokens()<\/code> and <code>nextToken()<\/code> API methods of StringTokenizer.<\/li>\n<li>For each token it creates a new <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/io\/File.html\" target=\"_blank\">File<\/a> and the absolute form of this File pathname, using <code>getAbsoluteFile()<\/code> API method of File.<\/li>\n<li>If the returned File is a normal File, with <code>isFile()<\/code> API method of File, it searches for the parent File, with <code>getParent()<\/code> API method of File and creates a new File from the parent pathname string and the given pathname string.\u00a0If it exists it returns the File, else it returns the File created from the specified pathname and the given pathname,<\/li>\n<\/ul>\n<p>as described in the code snippet below.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">\r\n\r\npackage com.javacodegeeks.snippets.core;\r\n\r\n\r\nimport java.io.File;\r\nimport java.util.StringTokenizer;\r\n\r\n\/**\r\n * A class containing useful utility methods relating to files.\r\n *\/\r\npublic class FileUtils {\r\n\r\n    public static void main(String[] args){\r\n\r\n  \r\n\r\n  File classpathFile = findFileOnClassPath(\"&lt;FILENAME TO FIND IN CLASSPATHS&gt;\");\r\n\r\n  System.out.print(classpathFile.getName());\r\n\r\n  \r\n    }\r\n    \/**\r\n     * Returns a reference to a file with the specified name that is located\r\n     * somewhere on the classpath.\r\n     *\/\r\n    public static File findFileOnClassPath(final String fileName) {\r\n\r\n\r\n  final String classpath = System.getProperty(\"java.class.path\");\r\n\r\n  final String pathSeparator = System.getProperty(\"path.separator\");\r\n\r\n\r\n  final StringTokenizer tokenizer = new StringTokenizer(classpath, pathSeparator);\r\n\r\n\r\n  while (tokenizer.hasMoreTokens()) {\r\n\r\n\r\n\r\n\r\n\r\nfinal String pathElement = tokenizer.nextToken();\r\n\r\n\r\n\r\nfinal File directoryOrJar = new File(pathElement);\r\n\r\n\r\nfinal File absoluteDirectoryOrJar = directoryOrJar.getAbsoluteFile();\r\n\r\n\r\n\r\nif (absoluteDirectoryOrJar.isFile()) {\r\n\r\n\r\n    final File target = new File(absoluteDirectoryOrJar.getParent(), fileName);\r\n\r\n\r\n    if (target.exists()) {\r\n\r\n\r\n\r\n  return target;\r\n\r\n\r\n    }\r\n\r\n\r\n} else {\r\n\r\n\r\n    final File target = new File(directoryOrJar, fileName);\r\n\r\n\r\n    if (target.exists()) {\r\n\r\n\r\n\r\n  return target;\r\n\r\n\r\n    }\r\n\r\n\r\n}\r\n\r\n\r\n  }\r\n\r\n  return null;\r\n\r\n    }\r\n}\r\n<\/pre>\n<p>&nbsp;\u00a0<br \/>\nThis was an example of how to find a file in the classpath in Java.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File findFileOnClassPath(final String fileName) that reads a fileName and returns the File. The method is described below: It uses the System.getProperty(String key) to find the classpath of java and &hellip;<\/p>\n","protected":false},"author":7,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[1081,189],"class_list":["post-206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-class","tag-class","tag-core-java-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Find a file in classpath - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Find a file in classpath - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-11T19:22:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-18T17:38:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ilias Tsagklis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ilias Tsagklis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\"},\"author\":{\"name\":\"Ilias Tsagklis\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/ca18b1aa108e3bfadf717e563e0a7a6e\"},\"headline\":\"Find a file in classpath\",\"datePublished\":\"2012-11-11T19:22:03+00:00\",\"dateModified\":\"2013-07-18T17:38:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\"},\"wordCount\":192,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"keywords\":[\"class\",\"core java\"],\"articleSection\":[\"class\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\",\"name\":\"Find a file in classpath - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"datePublished\":\"2012-11-11T19:22:03+00:00\",\"dateModified\":\"2013-07-18T17:38:23+00:00\",\"description\":\"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"class\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/class\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Find a file in classpath\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/ca18b1aa108e3bfadf717e563e0a7a6e\",\"name\":\"Ilias Tsagklis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/Ilias-Tsagklis_avatar_1454249217-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/Ilias-Tsagklis_avatar_1454249217-96x96.jpg\",\"caption\":\"Ilias Tsagklis\"},\"description\":\"Ilias is a software developer turned online entrepreneur. He is co-founder and Executive Editor at Java Code Geeks.\",\"sameAs\":[\"http:\/\/www.iliastsagklis.com\/\",\"https:\/\/www.linkedin.com\/in\/iliastsagklis\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/ilias-tsagklis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Find a file in classpath - Java Code Geeks","description":"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/","og_locale":"en_US","og_type":"article","og_title":"Find a file in classpath - Java Code Geeks","og_description":"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File","og_url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-11-11T19:22:03+00:00","article_modified_time":"2013-07-18T17:38:23+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Ilias Tsagklis","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Ilias Tsagklis","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/"},"author":{"name":"Ilias Tsagklis","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/ca18b1aa108e3bfadf717e563e0a7a6e"},"headline":"Find a file in classpath","datePublished":"2012-11-11T19:22:03+00:00","dateModified":"2013-07-18T17:38:23+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/"},"wordCount":192,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","keywords":["class","core java"],"articleSection":["class"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/","url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/","name":"Find a file in classpath - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2012-11-11T19:22:03+00:00","dateModified":"2013-07-18T17:38:23+00:00","description":"In this example we shall show you how to find a file in the classpath.\u00a0To find a file in the classpath we have created a method, File","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/class\/find-a-file-in-classpath\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"class","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/class\/"},{"@type":"ListItem","position":5,"name":"Find a file in classpath"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/ca18b1aa108e3bfadf717e563e0a7a6e","name":"Ilias Tsagklis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/Ilias-Tsagklis_avatar_1454249217-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/Ilias-Tsagklis_avatar_1454249217-96x96.jpg","caption":"Ilias Tsagklis"},"description":"Ilias is a software developer turned online entrepreneur. He is co-founder and Executive Editor at Java Code Geeks.","sameAs":["http:\/\/www.iliastsagklis.com\/","https:\/\/www.linkedin.com\/in\/iliastsagklis"],"url":"https:\/\/examples.javacodegeeks.com\/author\/ilias-tsagklis\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}