diff --git a/.classpath b/.classpath index 0b40aff..30ec3f5 100644 --- a/.classpath +++ b/.classpath @@ -1,6 +1,7 @@ - + + diff --git a/.metadata/.lock b/.metadata/.lock deleted file mode 100644 index e69de29..0000000 diff --git a/.metadata/.log b/.metadata/.log deleted file mode 100644 index 7b6e5cc..0000000 --- a/.metadata/.log +++ /dev/null @@ -1,66 +0,0 @@ -!SESSION 2016-10-10 19:51:10.659 ----------------------------------------------- -eclipse.buildId=4.3.0.M20130911-1000 -java.version=1.8.0_101 -java.vendor=Oracle Corporation -BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR -Framework arguments: -product org.eclipse.epp.package.java.product -Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 19:55:23.569 -!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level -Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. -The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in -this system level configuration. The Git installation location can be configured on the -Team > Git > Configuration preference page's 'System Settings' tab. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 19:55:23.571 -!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git -user global configuration and to define the default location to store repositories: 'C:\Users\ByungKyu'. If this is -not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and -EGit might behave differently since they see different configuration options. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. -!SESSION 2016-10-10 19:56:08.483 ----------------------------------------------- -eclipse.buildId=4.3.0.M20130911-1000 -java.version=1.8.0_101 -java.vendor=Oracle Corporation -BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR -Framework arguments: -product org.eclipse.epp.package.java.product -Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 19:56:54.039 -!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level -Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. -The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in -this system level configuration. The Git installation location can be configured on the -Team > Git > Configuration preference page's 'System Settings' tab. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 19:56:54.041 -!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git -user global configuration and to define the default location to store repositories: 'C:\Users\ByungKyu'. If this is -not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and -EGit might behave differently since they see different configuration options. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. -!SESSION 2016-10-10 20:05:52.559 ----------------------------------------------- -eclipse.buildId=4.3.0.M20130911-1000 -java.version=1.8.0_101 -java.vendor=Oracle Corporation -BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR -Framework arguments: -product org.eclipse.epp.package.java.product -Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 20:08:33.635 -!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level -Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. -The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in -this system level configuration. The Git installation location can be configured on the -Team > Git > Configuration preference page's 'System Settings' tab. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. - -!ENTRY org.eclipse.egit.ui 2 0 2016-10-10 20:08:33.637 -!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git -user global configuration and to define the default location to store repositories: 'C:\Users\ByungKyu'. If this is -not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and -EGit might behave differently since they see different configuration options. -This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. diff --git a/.metadata/.mylyn/.taskListIndex/segments.gen b/.metadata/.mylyn/.taskListIndex/segments.gen deleted file mode 100644 index 63a7ec9..0000000 Binary files a/.metadata/.mylyn/.taskListIndex/segments.gen and /dev/null differ diff --git a/.metadata/.mylyn/.taskListIndex/segments_1 b/.metadata/.mylyn/.taskListIndex/segments_1 deleted file mode 100644 index 39224c5..0000000 Binary files a/.metadata/.mylyn/.taskListIndex/segments_1 and /dev/null differ diff --git a/.metadata/.mylyn/.tasks.xml.zip b/.metadata/.mylyn/.tasks.xml.zip deleted file mode 100644 index e61c394..0000000 Binary files a/.metadata/.mylyn/.tasks.xml.zip and /dev/null differ diff --git a/.metadata/.mylyn/repositories.xml.zip b/.metadata/.mylyn/repositories.xml.zip deleted file mode 100644 index 7fa1184..0000000 Binary files a/.metadata/.mylyn/repositories.xml.zip and /dev/null differ diff --git a/.metadata/.mylyn/tasks.xml.zip b/.metadata/.mylyn/tasks.xml.zip deleted file mode 100644 index 242e2d5..0000000 Binary files a/.metadata/.mylyn/tasks.xml.zip and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version b/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version deleted file mode 100644 index 25cb955..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index deleted file mode 100644 index 139ec8d..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version b/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version deleted file mode 100644 index 6b2aaa7..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/4.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/4.tree deleted file mode 100644 index 6fdf8b9..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/4.tree and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources deleted file mode 100644 index e5376f3..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index dffc6b5..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -version=1 diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs deleted file mode 100644 index 9dd00d6..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\r\n\r\n -preferredTargets=default\:default| diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 2438e68..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs deleted file mode 100644 index 5b70a20..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.launching.PREF_VM_XML=\r\n\r\n\r\n\r\n\r\n\r\n diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index ce584c8..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,14 +0,0 @@ -content_assist_number_of_computers=21 -content_assist_proposals_background=255,255,255 -content_assist_proposals_foreground=0,0,0 -eclipse.preferences.version=1 -fontPropagated=true -org.eclipse.jdt.ui.editor.tab.width= -org.eclipse.jdt.ui.formatterprofiles.version=12 -org.eclipse.jdt.ui.javadoclocations.migrated=true -org.eclipse.jface.textfont=1|Courier New|10.0|0|WINDOWS|1|0|0|0|0|0|0|0|0|1|0|0|0|0|Courier New; -proposalOrderMigrated=true -spelling_locale_initialized=true -tabWidthPropagated=true -useAnnotationsPrefPage=true -useQuickDiffPrefPage=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs deleted file mode 100644 index 67b1d96..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.m2e.discovery.pref.projects= diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs deleted file mode 100644 index 43e97e4..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -mylyn.attention.migrated=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs deleted file mode 100644 index 8d462a6..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 453b994..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.mylyn.tasks.ui.filters.nonmatching=true -org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs deleted file mode 100644 index f9e585b..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -pref_first_startup=false diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs deleted file mode 100644 index 56cd496..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.team.ui.first_time=false diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs deleted file mode 100644 index 61f3bb8..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -overviewRuler_migration=migrated_3.1 diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs deleted file mode 100644 index 87fc76b..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs +++ /dev/null @@ -1,5 +0,0 @@ -PROBLEMS_FILTERS_MIGRATE=true -eclipse.preferences.version=1 -platformState=1475213003251 -quickStart=false -tipsAndTricks=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs deleted file mode 100644 index 08076f2..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -showIntro=false diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs deleted file mode 100644 index 6316221..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs +++ /dev/null @@ -1,3 +0,0 @@ -ENABLED_DECORATORS=org.eclipse.m2e.core.mavenVersionDecorator\:false,org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator\:true,org.eclipse.jdt.ui.override.decorator\:true,org.eclipse.jdt.ui.interface.decorator\:false,org.eclipse.jdt.ui.buildpath.decorator\:true,org.eclipse.m2e.core.maven2decorator\:true,org.eclipse.mylyn.context.ui.decorator.interest\:true,org.eclipse.mylyn.tasks.ui.decorators.task\:true,org.eclipse.mylyn.team.ui.changeset.decorator\:true,org.eclipse.team.cvs.ui.decorator\:true,org.eclipse.ui.LinkedResourceDecorator\:true,org.eclipse.ui.SymlinkDecorator\:true,org.eclipse.ui.VirtualResourceDecorator\:true,org.eclipse.ui.ContentTypeDecorator\:true,org.eclipse.ui.ResourceFilterDecorator\:false, -PLUGINS_NOT_ACTIVATED_ON_STARTUP=org.eclipse.m2e.discovery; -eclipse.preferences.version=1 diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.sse.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.sse.ui.prefs deleted file mode 100644 index 4fd0cd3..0000000 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.sse.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -content_assist_number_of_computers=2 -eclipse.preferences.version=1 -useAnnotationsPrefPage=true -useQuickDiffPrefPage=true diff --git a/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml deleted file mode 100644 index 899cccc..0000000 --- a/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml +++ /dev/null @@ -1,8 +0,0 @@ - -
-
- - - -
-
diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi deleted file mode 100644 index c439873..0000000 --- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ /dev/null @@ -1,2042 +0,0 @@ - - - - activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration - ModelMigrationProcessor.001 - - - - - - topLevel - - - - - persp.actionSet:org.eclipse.mylyn.context.ui.actionSet - persp.actionSet:org.eclipse.mylyn.doc.actionSet - persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation - persp.actionSet:org.eclipse.ui.cheatsheets.actionSet - persp.actionSet:org.eclipse.search.searchActionSet - persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation - persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation - persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo - persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet - persp.actionSet:org.eclipse.ui.actionSet.keyBindings - persp.actionSet:org.eclipse.ui.actionSet.openFiles - persp.actionSet:org.eclipse.wb.core.ui.actionset - persp.actionSet:org.eclipse.debug.ui.launchActionSet - persp.actionSet:org.eclipse.jdt.ui.JavaActionSet - persp.actionSet:org.eclipse.jdt.ui.JavaElementCreationActionSet - persp.actionSet:org.eclipse.ui.NavigateActionSet - persp.viewSC:org.eclipse.jdt.ui.PackageExplorer - persp.viewSC:org.eclipse.jdt.ui.TypeHierarchy - persp.viewSC:org.eclipse.jdt.ui.SourceView - persp.viewSC:org.eclipse.jdt.ui.JavadocView - persp.viewSC:org.eclipse.search.ui.views.SearchView - persp.viewSC:org.eclipse.ui.console.ConsoleView - persp.viewSC:org.eclipse.ui.views.ContentOutline - persp.viewSC:org.eclipse.ui.views.ProblemView - persp.viewSC:org.eclipse.ui.views.ResourceNavigator - persp.viewSC:org.eclipse.ui.views.TaskList - persp.viewSC:org.eclipse.ui.views.ProgressView - persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer - persp.viewSC:org.eclipse.ui.texteditor.TemplatesView - persp.viewSC:org.eclipse.pde.runtime.LogView - persp.newWizSC:org.eclipse.jdt.ui.wizards.JavaProjectWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewPackageCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewClassCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewEnumCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard - persp.newWizSC:org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard - persp.newWizSC:org.eclipse.ui.wizards.new.folder - persp.newWizSC:org.eclipse.ui.wizards.new.file - persp.newWizSC:org.eclipse.ui.editors.wizards.UntitledTextFileWizard - persp.perspSC:org.eclipse.jdt.ui.JavaBrowsingPerspective - persp.perspSC:org.eclipse.debug.ui.DebugPerspective - persp.viewSC:org.eclipse.ant.ui.views.AntView - persp.showIn:org.eclipse.egit.ui.RepositoriesView - persp.actionSet:org.eclipse.debug.ui.breakpointActionSet - persp.actionSet:org.eclipse.jdt.debug.ui.JDTDebugActionSet - persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard - persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet - persp.showIn:org.eclipse.jdt.ui.PackageExplorer - persp.showIn:org.eclipse.team.ui.GenericHistoryView - persp.showIn:org.eclipse.ui.views.ResourceNavigator - persp.showIn:org.eclipse.ui.navigator.ProjectExplorer - persp.viewSC:org.eclipse.mylyn.tasks.ui.views.tasks - persp.newWizSC:org.eclipse.mylyn.tasks.ui.wizards.new.repository.task - persp.viewSC:org.eclipse.wb.core.StructureView - persp.viewSC:org.eclipse.wb.core.PaletteView - - - - newtablook - org.eclipse.e4.primaryNavigationStack - - - - - - - - - - newtablook - - - - - - - - - newtablook - - - - newtablook - org.eclipse.e4.secondaryNavigationStack - - - - - - - - newtablook - org.eclipse.e4.secondaryDataStack - - - - - - - - - - - - - - - - - - - - View - categoryTag:Help - - - View - categoryTag:General - - ViewMenu - menuContribution:menu - - - - - View - categoryTag:Help - - - - newtablook - org.eclipse.e4.primaryDataStack - EditorStack - - - - - View - categoryTag:Java - activeOnClose - - ViewMenu - menuContribution:menu - - - - - View - categoryTag:Java - - - View - categoryTag:General - - - View - categoryTag:General - - - - View - categoryTag:General - - ViewMenu - menuContribution:menu - - - - - View - categoryTag:Java - - - View - categoryTag:Java - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - - View - categoryTag:General - - ViewMenu - menuContribution:menu - - - - - View - categoryTag:General - - - View - categoryTag:Ant - - - View - categoryTag:Git - - - View - categoryTag:Java - - - - View - categoryTag:Mylyn - - ViewMenu - menuContribution:menu - - - - - View - categoryTag:WindowBuilder - - - View - categoryTag:WindowBuilder - - - - toolbarSeparator - - - - Draggable - - - - - - - - - - - - - - - - toolbarSeparator - - - - Draggable - - - - - Draggable - - - - - - - Draggable - - - - - - - Draggable - - - - - - - Draggable - - - - - - - - - - toolbarSeparator - - - - Draggable - - - - - - - - - - - - toolbarSeparator - - - - toolbarSeparator - - - - Draggable - - - - - stretch - - - glue - - - - glue - - - Draggable - - - - - stretch - - - - Draggable - - - - - TrimStack - - - TrimStack - - - - - TrimStack - - - TrimStack - - - TrimStack - - - TrimStack - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - platform:win32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Editor - - - View - categoryTag:Ant - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Debug - - - View - categoryTag:Git - - - View - categoryTag:Git - - - View - categoryTag:Git - - - View - categoryTag:Git - - - View - categoryTag:General - - - View - categoryTag:Help - - - View - categoryTag:Debug - - - View - categoryTag:Java - - - View - categoryTag:Java - - - View - categoryTag:Java - - - View - categoryTag:Java Browsing - - - View - categoryTag:Java Browsing - - - View - categoryTag:Java Browsing - - - View - categoryTag:Java Browsing - - - View - categoryTag:Java - - - View - categoryTag:General - - - View - categoryTag:Java - - - View - categoryTag:Java - - - View - categoryTag:Maven - - - View - categoryTag:Maven - - - View - categoryTag:Mylyn - - - View - categoryTag:Mylyn - - - View - categoryTag:Mylyn - - - View - categoryTag:Mylyn - - - View - categoryTag:Recommenders - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:CVS - - - View - categoryTag:CVS - - - View - categoryTag:Team - - - View - categoryTag:Team - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:Help - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:General - - - View - categoryTag:WindowBuilder - - - View - categoryTag:WindowBuilder - - - View - categoryTag:General - - - View - categoryTag:XML - - - View - categoryTag:XML - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps b/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps deleted file mode 100644 index 593f470..0000000 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache b/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache deleted file mode 100644 index 593f470..0000000 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt b/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt deleted file mode 100644 index 8586397..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt +++ /dev/null @@ -1 +0,0 @@ -java \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache deleted file mode 100644 index 593f470..0000000 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt deleted file mode 100644 index 0f3229c..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt +++ /dev/null @@ -1 +0,0 @@ -INDEX VERSION 1.126+C:\Users\ByungKyu\Desktop\�б�\��ǻ�Ͱ���\2016-2\�ֵ���\������Ʈ\.metadata\.plugins\org.eclipse.jdt.core diff --git a/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat deleted file mode 100644 index 0edae4b..0000000 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml b/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml deleted file mode 100644 index c2abb8e..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml b/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml deleted file mode 100644 index 0adfd02..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml deleted file mode 100644 index a4ee3cb..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml deleted file mode 100644 index 9e390f5..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml deleted file mode 100644 index 1c92312..0000000 --- a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml +++ /dev/null @@ -1,17 +0,0 @@ - -
- -
- - - - - -
-
-
-
-
-
-
-
diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.history b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.history deleted file mode 100644 index 33234c5..0000000 --- a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.history +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.index b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.index deleted file mode 100644 index df78373..0000000 --- a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/.workspace/2016/10/42/refactorings.index +++ /dev/null @@ -1,3 +0,0 @@ -1476097272136 Delete resource '프로젝트' -1476097742101 Delete resource 'Todo' -1476097785675 Delete resource '프로젝트' diff --git a/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml deleted file mode 100644 index aa26784..0000000 --- a/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml +++ /dev/null @@ -1,7 +0,0 @@ - -
-
- - -
-
diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log deleted file mode 100644 index e69de29..0000000 diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml deleted file mode 100644 index e0de515..0000000 --- a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - %date [%thread] %-5level %logger{35} - %msg%n - - - - - - ${org.eclipse.m2e.log.dir}/0.log - - ${org.eclipse.m2e.log.dir}/%i.log - 1 - 10 - - - 100MB - - - %date [%thread] %-5level %logger{35} - %msg%n - - - - - - WARN - - - - - - - - - - - - - - - diff --git a/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml deleted file mode 100644 index ee71748..0000000 --- a/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml +++ /dev/null @@ -1,15 +0,0 @@ - -
-
- - - - - - - - - - -
-
diff --git a/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml deleted file mode 100644 index f2fbcbc..0000000 --- a/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml +++ /dev/null @@ -1,19 +0,0 @@ - -
-
- - - - - - - - - - -
-
-
-
-
-
diff --git a/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml b/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml deleted file mode 100644 index 02e4492..0000000 --- a/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.wst.sse.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.wst.sse.ui/dialog_settings.xml deleted file mode 100644 index 63fae25..0000000 --- a/.metadata/.plugins/org.eclipse.wst.sse.ui/dialog_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - -
-
-
-
diff --git a/.metadata/version.ini b/.metadata/version.ini deleted file mode 100644 index c51ff74..0000000 --- a/.metadata/version.ini +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.core.runtime=1 \ No newline at end of file diff --git a/.project b/.project index e4220b0..f66b60c 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - Project + JDP diff --git a/.settings/META-INF/MANIFEST.MF b/.settings/META-INF/MANIFEST.MF new file mode 100644 index 0000000..bccc8de --- /dev/null +++ b/.settings/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jitu +Build-Jdk: 1.7.0_13 + diff --git a/.settings/allclasses-frame.html b/.settings/allclasses-frame.html new file mode 100644 index 0000000..63cbe42 --- /dev/null +++ b/.settings/allclasses-frame.html @@ -0,0 +1,43 @@ + + + + + + +All Classes (JSR 353 (JSON Processing) API 1.0 API) + + + + +

All Classes

+ + + diff --git a/.settings/allclasses-noframe.html b/.settings/allclasses-noframe.html new file mode 100644 index 0000000..a85d690 --- /dev/null +++ b/.settings/allclasses-noframe.html @@ -0,0 +1,43 @@ + + + + + + +All Classes (JSR 353 (JSON Processing) API 1.0 API) + + + + +

All Classes

+ + + diff --git a/.settings/constant-values.html b/.settings/constant-values.html new file mode 100644 index 0000000..4522bfc --- /dev/null +++ b/.settings/constant-values.html @@ -0,0 +1,146 @@ + + + + + + +Constant Field Values (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

javax.json.*

+
    +
  • + + + + + + + + + + + + + + +
    javax.json.stream.JsonGenerator 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringPRETTY_PRINTING"javax.json.stream.JsonGenerator.prettyPrinting"
    +
  • +
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/deprecated-list.html b/.settings/deprecated-list.html new file mode 100644 index 0000000..13ad6b4 --- /dev/null +++ b/.settings/deprecated-list.html @@ -0,0 +1,117 @@ + + + + + + +Deprecated List (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/doc-files/speclicense.html b/.settings/doc-files/speclicense.html new file mode 100644 index 0000000..3d55d92 --- /dev/null +++ b/.settings/doc-files/speclicense.html @@ -0,0 +1,217 @@ + + +Specification License + + +Specification: JSR-353 Java API for JSON Processing ("Specification") +
+Version: 1.0 +
+Status: Final Release +
+Specification Lead: Oracle America, Inc. ("Specification Lead") +
+Release: Apr 15th, 2013 +
+ +
+Copyright © Oracle America, Inc. +
+All rights reserved. +
+

+LIMITED LICENSE GRANTS +
+1. License for Evaluation Purposes. Specification Lead hereby grants +you a fully-paid, non-exclusive, non-transferable, worldwide, limited +license (without the right to sublicense), under Specification Lead's +applicable intellectual property rights to view, download, use and +reproduce the Specification only for the purpose of internal +evaluation. This includes (i) developing applications intended to run +on an implementation of the Specification, provided that such +applications do not themselves implement any portion(s) of the +Specification, and (ii) discussing the Specification with any third +party; and (iii) excerpting brief portions of the Specification in oral +or written communications which discuss the Specification provided that +such excerpts do not in the aggregate constitute a significant portion +of the Specification. +

+

+2. License for the Distribution of Compliant Implementations. +Specification Lead also grants you a perpetual, non-exclusive, +non-transferable, worldwide, fully paid-up, royalty free, limited +license (without the right to sublicense) under any applicable +copyrights or, subject to the provisions of subsection 4 below, patent +rights it may have covering the Specification to create and/or +distribute an Independent Implementation of the Specification that: (a) +fully implements the Specification including all its required +interfaces and functionality; (b) does not modify, subset, superset or +otherwise extend the Licensor Name Space, or include any public or +protected packages, classes, Java interfaces, fields or methods within +the Licensor Name Space other than those required/authorized by the +Specification or Specifications being implemented; and (c) passes the +Technology Compatibility Kit (including satisfying the requirements of +the applicable TCK Users Guide) for such Specification ("Compliant +Implementation"). In addition, the foregoing license is expressly +conditioned on your not acting outside its scope. No license is +granted hereunder for any other purpose (including, for example, +modifying the Specification, other than to the extent of your fair use +rights, or distributing the Specification to third parties). Also, no +right, title, or interest in or to any trademarks, service marks, or +trade names of Specification Lead or Specification Lead's licensors is +granted hereunder. Java, and Java-related logos, marks and names are +trademarks or registered trademarks of Oracle America, Inc. in the U.S. +and other countries. +

+

+3. Pass-through Conditions. You need not include limitations (a)-(c) +from the previous paragraph or any other particular "pass through" +requirements in any license You grant concerning the use of your +Independent Implementation or products derived from it. However, +except with respect to Independent Implementations (and products +derived from them) that satisfy limitations (a)-(c) from the previous +paragraph, You may neither: (a) grant or otherwise pass through to +your licensees any licenses under Specification Lead's applicable +intellectual property rights; nor (b) authorize your licensees to make +any claims concerning their implementation's compliance with the +Specification in question. +

+

+4. Reciprocity Concerning Patent Licenses. +
+a. With respect to any patent claims covered by the license granted +under subparagraph 2 above that would be infringed by all technically +feasible implementations of the Specification, such license is +conditioned upon your offering on fair, reasonable and +non-discriminatory terms, to any party seeking it from You, a +perpetual, non-exclusive, non-transferable, worldwide license under +Your patent rights which are or would be infringed by all technically +feasible implementations of the Specification to develop, distribute +and use a Compliant Implementation. +
+b. With respect to any patent claims owned by Specification Lead and +covered by the license granted under subparagraph 2, whether or not +their infringement can be avoided in a technically feasible manner when +implementing the Specification, such license shall terminate with +respect to such claims if You initiate a claim against Specification +Lead that it has, in the course of performing its responsibilities as +the Specification Lead, induced any other entity to infringe Your +patent rights. +
+c. Also with respect to any patent claims owned by Specification Lead +and covered by the license granted under subparagraph 2 above, where +the infringement of such claims can be avoided in a technically +feasible manner when implementing the Specification such license, with +respect to such claims, shall terminate if You initiate a claim against +Specification Lead that its making, having made, using, offering to +sell, selling or importing a Compliant Implementation infringes Your +patent rights. +

+

+5. Definitions. For the purposes of this Agreement: "Independent +Implementation" shall mean an implementation of the Specification that +neither derives from any of Specification Lead's source code or binary +code materials nor, except with an appropriate and separate license +from Specification Lead, includes any of Specification Lead's source +code or binary code materials; "Licensor Name Space" shall mean the +public class or interface declarations whose names begin with "java", +"javax", "com.<Specification Lead>" or their equivalents in any +subsequent naming convention adopted by Oracle through the Java +Community Process, or any recognized successors or replacements +thereof; and "Technology Compatibility Kit" or "TCK" shall mean the +test suite and accompanying TCK User's Guide provided by Specification +Lead which corresponds to the Specification and that was available +either (i) from Specification Lead's 120 days before the first release +of Your Independent Implementation that allows its use for commercial +purposes, or (ii) more recently than 120 days from such release but +against which You elect to test Your implementation of the +Specification. +

+

+This Agreement will terminate immediately without notice from +Specification Lead if you breach the Agreement or act outside the scope +of the licenses granted above. +

+

+DISCLAIMER OF WARRANTIES +
+THE SPECIFICATION IS PROVIDED "AS IS". SPECIFICATION LEAD MAKES NO +REPRESENTATIONS OR WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT +NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE, NON-INFRINGEMENT (INCLUDING AS A CONSEQUENCE OF ANY PRACTICE +OR IMPLEMENTATION OF THE SPECIFICATION), OR THAT THE CONTENTS OF THE +SPECIFICATION ARE SUITABLE FOR ANY PURPOSE. This document does not +represent any commitment to release or implement any portion of the +Specification in any product. In addition, the Specification could +include technical inaccuracies or typographical errors. +

+

+LIMITATION OF LIABILITY +
+TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL SPECIFICATION +LEAD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES, INCLUDING WITHOUT +LIMITATION, LOST REVENUE, PROFITS OR DATA, OR FOR SPECIAL, INDIRECT, +CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND +REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED IN ANY +WAY TO YOUR HAVING, IMPELEMENTING OR OTHERWISE USING USING THE +SPECIFICATION, EVEN IF SPECIFICATION LEAD AND/OR ITS LICENSORS HAVE +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You will indemnify, +hold harmless, and defend Specification Lead and its licensors from any +claims arising or resulting from: (i) your use of the Specification; +(ii) the use or distribution of your Java application, applet and/or +implementation; and/or (iii) any claims that later versions or releases +of any Specification furnished to you are incompatible with the +Specification provided to you under this license. +

+

+RESTRICTED RIGHTS LEGEND +
+U.S. Government: If this Specification is being acquired by or on +behalf of the U.S. Government or by a U.S. Government prime contractor +or subcontractor (at any tier), then the Government's rights in the +Software and accompanying documentation shall be only as set forth in +this license; this is in accordance with 48 C.F.R. 227.7201 through +227.7202-4 (for Department of Defense (DoD) acquisitions) and with 48 +C.F.R. 2.101 and 12.212 (for non-DoD acquisitions). +

+

+REPORT +
+If you provide Specification Lead with any comments or suggestions +concerning the Specification ("Feedback"), you hereby: (i) agree that +such Feedback is provided on a non-proprietary and non-confidential +basis, and (ii) grant Specification Lead a perpetual, non-exclusive, +worldwide, fully paid-up, irrevocable license, with the right to +sublicense through multiple levels of sublicensees, to incorporate, +disclose, and use without limitation the Feedback for any purpose. +

+

+GENERAL TERMS +
+Any action related to this Agreement will be governed by California law +and controlling U.S. federal law. The U.N. Convention for the +International Sale of Goods and the choice of law rules of any +jurisdiction will not apply. +

+

+The Specification is subject to U.S. export control laws and may be +subject to export or import regulations in other countries. Licensee +agrees to comply strictly with all such laws and regulations and +acknowledges that it has the responsibility to obtain such licenses to +export, re-export or import as may be required after delivery to +Licensee. +

+

+This Agreement is the parties' entire agreement relating to its subject +matter. It supersedes all prior or contemporaneous oral or written +communications, proposals, conditions, representations and warranties +and prevails over any conflicting or additional terms of any quote, +order, acknowledgment, or other communication between the parties +relating to its subject matter during the term of this Agreement. No +modification to this Agreement will be binding, unless in writing and +signed by an authorized representative of each party. +

+
+Rev. April, 2006 + + diff --git a/.settings/help-doc.html b/.settings/help-doc.html new file mode 100644 index 0000000..94910a3 --- /dev/null +++ b/.settings/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +API Help (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/index-all.html b/.settings/index-all.html new file mode 100644 index 0000000..58755c8 --- /dev/null +++ b/.settings/index-all.html @@ -0,0 +1,1120 @@ + + + + + + +Index (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I J L N P R T V W  + + +

A

+
+
add(JsonValue) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array.
+
+
add(String) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonString.
+
+
add(BigDecimal) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonNumber.
+
+
add(BigInteger) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonNumber.
+
+
add(int) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonNumber.
+
+
add(long) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonNumber.
+
+
add(double) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a value to the array as a JsonNumber.
+
+
add(boolean) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a JsonValue.TRUE or JsonValue.FALSE value to the + array.
+
+
add(JsonObjectBuilder) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a JsonObject from an object builder to the array.
+
+
add(JsonArrayBuilder) - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a JsonArray from an array builder to the array.
+
+
add(String, JsonValue) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonValue pair to the JSON object associated with + this object builder.
+
+
add(String, String) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonString pair to the JSON object associated with + this object builder.
+
+
add(String, BigInteger) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
+
+
add(String, BigDecimal) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
+
+
add(String, int) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
+
+
add(String, long) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
+
+
add(String, double) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
+
+
add(String, boolean) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonValue#TRUE or name/JsonValue#FALSE pair + to the JSON object associated with this object builder.
+
+
add(String, JsonObjectBuilder) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonObject pair to the JSON object associated + with this object builder.
+
+
add(String, JsonArrayBuilder) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonArray pair to the JSON object associated with + this object builder.
+
+
addNull() - Method in interface javax.json.JsonArrayBuilder
+
+
Adds a JsonValue.NULL value to the array.
+
+
addNull(String) - Method in interface javax.json.JsonObjectBuilder
+
+
Adds a name/JsonValue#NULL pair to the JSON object associated + with this object builder where the value is null.
+
+
+ + + +

B

+
+
bigDecimalValue() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a BigDecimal object.
+
+
bigIntegerValue() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a BigInteger object.
+
+
bigIntegerValueExact() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a BigDecimal object.
+
+
build() - Method in interface javax.json.JsonArrayBuilder
+
+
Returns the current array.
+
+
build() - Method in interface javax.json.JsonObjectBuilder
+
+
Returns the JSON object associated with this object builder.
+
+
+ + + +

C

+
+
close() - Method in interface javax.json.JsonReader
+
+
Closes this reader and frees any resources associated with the + reader.
+
+
close() - Method in interface javax.json.JsonWriter
+
+
Closes this JSON writer and frees any resources associated with the + writer.
+
+
close() - Method in interface javax.json.stream.JsonGenerator
+
+
Closes this generator and frees any resources associated with it.
+
+
close() - Method in interface javax.json.stream.JsonParser
+
+
Closes this parser and frees any resources associated with the + parser.
+
+
createArrayBuilder() - Static method in class javax.json.Json
+
+
Creates a JSON array builder
+
+
createArrayBuilder() - Method in interface javax.json.JsonBuilderFactory
+
+
Creates a JsonArrayBuilder instance that is used to build + JsonArray
+
+
createArrayBuilder() - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON array builder
+
+
createBuilderFactory(Map<String, ?>) - Static method in class javax.json.Json
+
+
Creates a builder factory for creating JsonArrayBuilder + and JsonObjectBuilder objects.
+
+
createBuilderFactory(Map<String, ?>) - Method in class javax.json.spi.JsonProvider
+
+
Creates a builder factory for creating JsonArrayBuilder + and JsonObjectBuilder objects.
+
+
createGenerator(Writer) - Static method in class javax.json.Json
+
+
Creates a JSON generator for writing JSON to a character stream.
+
+
createGenerator(OutputStream) - Static method in class javax.json.Json
+
+
Creates a JSON generator for writing JSON to a byte stream.
+
+
createGenerator(Writer) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON generator for writing JSON text to a character stream.
+
+
createGenerator(OutputStream) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON generator for writing JSON text to a byte stream.
+
+
createGenerator(Writer) - Method in interface javax.json.stream.JsonGeneratorFactory
+
+
Creates a JSON generator to write JSON text to a character stream.
+
+
createGenerator(OutputStream) - Method in interface javax.json.stream.JsonGeneratorFactory
+
+
Creates a JSON generator to write JSON text to a byte stream.
+
+
createGenerator(OutputStream, Charset) - Method in interface javax.json.stream.JsonGeneratorFactory
+
+
Creates a JSON generator to write JSON text to a byte stream.
+
+
createGeneratorFactory(Map<String, ?>) - Static method in class javax.json.Json
+
+
Creates a generator factory for creating JsonGenerator objects.
+
+
createGeneratorFactory(Map<String, ?>) - Method in class javax.json.spi.JsonProvider
+
+
Creates a generator factory for creating JsonGenerator instances.
+
+
createObjectBuilder() - Static method in class javax.json.Json
+
+
Creates a JSON object builder
+
+
createObjectBuilder() - Method in interface javax.json.JsonBuilderFactory
+
+
Creates a JsonObjectBuilder instance that is used to build + JsonObject.
+
+
createObjectBuilder() - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON object builder
+
+
createParser(Reader) - Static method in class javax.json.Json
+
+
Creates a JSON parser from a character stream.
+
+
createParser(InputStream) - Static method in class javax.json.Json
+
+
Creates a JSON parser from a byte stream.
+
+
createParser(Reader) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON parser from a character stream.
+
+
createParser(InputStream) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON parser from the specified byte stream.
+
+
createParser(Reader) - Method in interface javax.json.stream.JsonParserFactory
+
+
Creates a JSON parser from a character stream.
+
+
createParser(InputStream) - Method in interface javax.json.stream.JsonParserFactory
+
+
Creates a JSON parser from the specified byte stream.
+
+
createParser(InputStream, Charset) - Method in interface javax.json.stream.JsonParserFactory
+
+
Creates a JSON parser from the specified byte stream.
+
+
createParser(JsonObject) - Method in interface javax.json.stream.JsonParserFactory
+
+
Creates a JSON parser from the specified JSON object.
+
+
createParser(JsonArray) - Method in interface javax.json.stream.JsonParserFactory
+
+
Creates a JSON parser from the specified JSON array.
+
+
createParserFactory(Map<String, ?>) - Static method in class javax.json.Json
+
+
Creates a parser factory for creating JsonParser objects.
+
+
createParserFactory(Map<String, ?>) - Method in class javax.json.spi.JsonProvider
+
+
Creates a parser factory for creating JsonParser instances.
+
+
createReader(Reader) - Static method in class javax.json.Json
+
+
Creates a JSON reader from a character stream.
+
+
createReader(InputStream) - Static method in class javax.json.Json
+
+
Creates a JSON reader from a byte stream.
+
+
createReader(Reader) - Method in interface javax.json.JsonReaderFactory
+
+
Creates a JSON reader from a character stream.
+
+
createReader(InputStream) - Method in interface javax.json.JsonReaderFactory
+
+
Creates a JSON reader from a byte stream.
+
+
createReader(InputStream, Charset) - Method in interface javax.json.JsonReaderFactory
+
+
Creates a JSON reader from a byte stream.
+
+
createReader(Reader) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON reader from a character stream.
+
+
createReader(InputStream) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON reader from a byte stream.
+
+
createReaderFactory(Map<String, ?>) - Static method in class javax.json.Json
+
+
Creates a reader factory for creating JsonReader objects.
+
+
createReaderFactory(Map<String, ?>) - Method in class javax.json.spi.JsonProvider
+
+
Creates a reader factory for creating JsonReader objects.
+
+
createWriter(Writer) - Static method in class javax.json.Json
+
+
Creates a JSON writer to write a + JSON object or array + structure to the specified character stream.
+
+
createWriter(OutputStream) - Static method in class javax.json.Json
+
+
Creates a JSON writer to write a + JSON object or array + structure to the specified byte stream.
+
+
createWriter(Writer) - Method in interface javax.json.JsonWriterFactory
+
+
Creates a JSON writer to write a JSON object or + array structure to the specified character stream.
+
+
createWriter(OutputStream) - Method in interface javax.json.JsonWriterFactory
+
+
Creates a JSON writer to write a JSON object or + array structure to the specified byte stream.
+
+
createWriter(OutputStream, Charset) - Method in interface javax.json.JsonWriterFactory
+
+
Creates a JSON writer to write a JSON object or + array structure to the specified byte stream.
+
+
createWriter(Writer) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON writer to write a + JSON object or array + structure to the specified character stream.
+
+
createWriter(OutputStream) - Method in class javax.json.spi.JsonProvider
+
+
Creates a JSON writer to write a + JSON object or array + structure to the specified byte stream.
+
+
createWriterFactory(Map<String, ?>) - Static method in class javax.json.Json
+
+
Creates a writer factory for creating JsonWriter objects.
+
+
createWriterFactory(Map<String, ?>) - Method in class javax.json.spi.JsonProvider
+
+
Creates a writer factory for creating JsonWriter objects.
+
+
+ + + +

D

+
+
doubleValue() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a double.
+
+
+ + + +

E

+
+
equals(Object) - Method in interface javax.json.JsonNumber
+
+
Compares the specified object with this JsonNumber object for + equality.
+
+
equals(Object) - Method in interface javax.json.JsonString
+
+
Compares the specified object with this JsonString for equality.
+
+
+ + + +

F

+
+
FALSE - Static variable in interface javax.json.JsonValue
+
+
JSON false value
+
+
flush() - Method in interface javax.json.stream.JsonGenerator
+
+
Flushes the underlying output source.
+
+
+ + + +

G

+
+
getBigDecimal() - Method in interface javax.json.stream.JsonParser
+
+
Returns a JSON number as a BigDecimal.
+
+
getBoolean(int) - Method in interface javax.json.JsonArray
+
+
Returns the boolean value at the specified position.
+
+
getBoolean(int, boolean) - Method in interface javax.json.JsonArray
+
+
Returns the boolean value at the specified position.
+
+
getBoolean(String) - Method in interface javax.json.JsonObject
+
+
Returns the boolean value of the associated mapping for the specified + name.
+
+
getBoolean(String, boolean) - Method in interface javax.json.JsonObject
+
+
Returns the boolean value of the associated mapping for the specified + name.
+
+
getChars() - Method in interface javax.json.JsonString
+
+
Returns the char sequence for the JSON String value
+
+
getColumnNumber() - Method in interface javax.json.stream.JsonLocation
+
+
Return the column number for the current JSON event in the input source.
+
+
getConfigInUse() - Method in interface javax.json.JsonBuilderFactory
+
+
Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON builders.
+
+
getConfigInUse() - Method in interface javax.json.JsonReaderFactory
+
+
Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON readers.
+
+
getConfigInUse() - Method in interface javax.json.JsonWriterFactory
+
+
Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON writer objects.
+
+
getConfigInUse() - Method in interface javax.json.stream.JsonGeneratorFactory
+
+
Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON generators.
+
+
getConfigInUse() - Method in interface javax.json.stream.JsonParserFactory
+
+
Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON parsers.
+
+
getInt(int) - Method in interface javax.json.JsonArray
+
+
A convenience method for + getJsonNumber(index).intValue().
+
+
getInt(int, int) - Method in interface javax.json.JsonArray
+
+
Returns the int value of the JsonNumber at the specified position.
+
+
getInt(String) - Method in interface javax.json.JsonObject
+
+
A convenience method for + getJsonNumber(name).intValue()
+
+
getInt(String, int) - Method in interface javax.json.JsonObject
+
+
Returns the int value of the associated JsonNumber mapping + for the specified name.
+
+
getInt() - Method in interface javax.json.stream.JsonParser
+
+
Returns a JSON number as an integer.
+
+
getJsonArray(int) - Method in interface javax.json.JsonArray
+
+
Returns the array value at the specified position in this array.
+
+
getJsonArray(String) - Method in interface javax.json.JsonObject
+
+
Returns the array value to which the specified name is mapped.
+
+
getJsonNumber(int) - Method in interface javax.json.JsonArray
+
+
Returns the number value at the specified position in this array.
+
+
getJsonNumber(String) - Method in interface javax.json.JsonObject
+
+
Returns the number value to which the specified name is mapped.
+
+
getJsonObject(int) - Method in interface javax.json.JsonArray
+
+
Returns the object value at the specified position in this array.
+
+
getJsonObject(String) - Method in interface javax.json.JsonObject
+
+
Returns the object value to which the specified name is mapped.
+
+
getJsonString(int) - Method in interface javax.json.JsonArray
+
+
Returns the string value at ths specified position in this array.
+
+
getJsonString(String) - Method in interface javax.json.JsonObject
+
+
Returns the string value to which the specified name is mapped.
+
+
getLineNumber() - Method in interface javax.json.stream.JsonLocation
+
+
Return the line number for the current JSON event in the input source.
+
+
getLocation() - Method in interface javax.json.stream.JsonParser
+
+
Return the location that corresponds to the parser's current state in + the JSON input source.
+
+
getLocation() - Method in exception javax.json.stream.JsonParsingException
+
+
Return the location of the incorrect JSON.
+
+
getLong() - Method in interface javax.json.stream.JsonParser
+
+
Returns a JSON number as a long.
+
+
getStreamOffset() - Method in interface javax.json.stream.JsonLocation
+
+
Return the stream offset into the input source this location + is pointing to.
+
+
getString(int) - Method in interface javax.json.JsonArray
+
+
A convenience method for + getJsonString(index).getString().
+
+
getString(int, String) - Method in interface javax.json.JsonArray
+
+
Returns the String value of JsonString at the specified + position in this JSON array values.
+
+
getString(String) - Method in interface javax.json.JsonObject
+
+
A convenience method for + getJsonString(name).getString()
+
+
getString(String, String) - Method in interface javax.json.JsonObject
+
+
Returns the string value of the associated JsonString mapping + for the specified name.
+
+
getString() - Method in interface javax.json.JsonString
+
+
Returns the JSON string value.
+
+
getString() - Method in interface javax.json.stream.JsonParser
+
+
Returns a String for the name in a name/value pair, + for a string value or a number value.
+
+
getValuesAs(Class<T>) - Method in interface javax.json.JsonArray
+
+
Returns a list a view of the specified type for the array.
+
+
getValueType() - Method in interface javax.json.JsonValue
+
+
Returns the value type of this JSON value.
+
+
+ + + +

H

+
+
hashCode() - Method in interface javax.json.JsonNumber
+
+
Returns the hash code value for this JsonNumber object.
+
+
hashCode() - Method in interface javax.json.JsonString
+
+
Returns the hash code value for this JsonString object.
+
+
hasNext() - Method in interface javax.json.stream.JsonParser
+
+
Returns true if there are more parsing states.
+
+
+ + + +

I

+
+
intValue() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as an int.
+
+
intValueExact() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as an int.
+
+
isIntegral() - Method in interface javax.json.JsonNumber
+
+
Returns true if this JSON number is a integral number.
+
+
isIntegralNumber() - Method in interface javax.json.stream.JsonParser
+
+
Returns true if the JSON number at the current parser state is a + integral number.
+
+
isNull(int) - Method in interface javax.json.JsonArray
+
+
Returns true if the value at the specified location in this + array is JsonValue.NULL.
+
+
isNull(String) - Method in interface javax.json.JsonObject
+
+
Returns true if the associated value for the specified name is + JsonValue.NULL.
+
+
+ + + +

J

+
+
javax.json - package javax.json
+
+
Provides an object model API to process JSON.
+
+
javax.json.spi - package javax.json.spi
+
+
Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
+
+
javax.json.stream - package javax.json.stream
+
+
Provides a streaming API to parse and generate + JSON.
+
+
Json - Class in javax.json
+
+
Factory class for creating JSON processing objects.
+
+
JsonArray - Interface in javax.json
+
+
JsonArray represents an immutable JSON array + (an ordered sequence of zero or more values).
+
+
JsonArrayBuilder - Interface in javax.json
+
+
A builder for creating JsonArray models from scratch.
+
+
JsonBuilderFactory - Interface in javax.json
+
+
Factory to create JsonObjectBuilder and JsonArrayBuilder + instances.
+
+
JsonException - Exception in javax.json
+
+
JsonException indicates that some exception happened during + JSON processing.
+
+
JsonException(String) - Constructor for exception javax.json.JsonException
+
+
Constructs a new runtime exception with the specified detail message.
+
+
JsonException(String, Throwable) - Constructor for exception javax.json.JsonException
+
+
Constructs a new runtime exception with the specified detail message and + cause.
+
+
JsonGenerationException - Exception in javax.json.stream
+
+
JsonGenerationException indicates an incorrect JSON is + being generated.
+
+
JsonGenerationException(String) - Constructor for exception javax.json.stream.JsonGenerationException
+
+
Constructs a new runtime exception with the specified detail message.
+
+
JsonGenerationException(String, Throwable) - Constructor for exception javax.json.stream.JsonGenerationException
+
+
Constructs a new runtime exception with the specified detail message and + cause.
+
+
JsonGenerator - Interface in javax.json.stream
+
+
Writes JSON data to an output source in a streaming way.
+
+
JsonGeneratorFactory - Interface in javax.json.stream
+
+
Factory to create JsonGenerator instances.
+
+
JsonLocation - Interface in javax.json.stream
+
+
Provides the location information of a JSON event in an input source.
+
+
JsonNumber - Interface in javax.json
+
+
An immutable JSON number value.
+
+
JsonObject - Interface in javax.json
+
+
JsonObject class represents an immutable JSON object value + (an unordered collection of zero or more name/value pairs).
+
+
JsonObjectBuilder - Interface in javax.json
+
+
A builder for creating JsonObject models from scratch.
+
+
JsonParser - Interface in javax.json.stream
+
+
Provides forward, read-only access to JSON data in a streaming way.
+
+
JsonParser.Event - Enum in javax.json.stream
+
+
An event from JsonParser.
+
+
JsonParserFactory - Interface in javax.json.stream
+
+
Factory for creating JsonParser instances.
+
+
JsonParsingException - Exception in javax.json.stream
+
+
JsonParsingException is used when an incorrect JSON is + being parsed.
+
+
JsonParsingException(String, JsonLocation) - Constructor for exception javax.json.stream.JsonParsingException
+
+
Constructs a new runtime exception with the specified detail message.
+
+
JsonParsingException(String, Throwable, JsonLocation) - Constructor for exception javax.json.stream.JsonParsingException
+
+
Constructs a new runtime exception with the specified detail message and + cause.
+
+
JsonProvider - Class in javax.json.spi
+
+
Service provider for JSON processing objects.
+
+
JsonProvider() - Constructor for class javax.json.spi.JsonProvider
+
 
+
JsonReader - Interface in javax.json
+
+
Reads a JSON object or an array + structure from an input source.
+
+
JsonReaderFactory - Interface in javax.json
+
+
Factory to create JsonReader instances.
+
+
JsonString - Interface in javax.json
+
+
An immutable JSON string value.
+
+
JsonStructure - Interface in javax.json
+
+
Super type for the two structured types in JSON (objects + and arrays).
+
+
JsonValue - Interface in javax.json
+
+
JsonValue represents an immutable JSON value.
+
+
JsonValue.ValueType - Enum in javax.json
+
+
Indicates the type of a JsonValue object.
+
+
JsonWriter - Interface in javax.json
+
+
Writes a JSON object or array structure + to an output source.
+
+
JsonWriterFactory - Interface in javax.json
+
+
Factory to create JsonWriter instances.
+
+
+ + + +

L

+
+
longValue() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a long.
+
+
longValueExact() - Method in interface javax.json.JsonNumber
+
+
Returns this JSON number as a long.
+
+
+ + + +

N

+
+
next() - Method in interface javax.json.stream.JsonParser
+
+
Returns the event for the next parsing state.
+
+
NULL - Static variable in interface javax.json.JsonValue
+
+
JSON null value.
+
+
+ + + +

P

+
+
PRETTY_PRINTING - Static variable in interface javax.json.stream.JsonGenerator
+
+
Configuration property to generate JSON prettily.
+
+
provider() - Static method in class javax.json.spi.JsonProvider
+
+
Creates a JSON provider object.
+
+
+ + + +

R

+
+
read() - Method in interface javax.json.JsonReader
+
+
Returns a JSON array or object that is represented in + the input source.
+
+
readArray() - Method in interface javax.json.JsonReader
+
+
Returns a JSON array that is represented in + the input source.
+
+
readObject() - Method in interface javax.json.JsonReader
+
+
Returns a JSON object that is represented in + the input source.
+
+
+ + + +

T

+
+
toString() - Method in interface javax.json.JsonNumber
+
+
Returns a JSON text representation of the JSON number.
+
+
toString() - Method in interface javax.json.JsonValue
+
+
Returns JSON text for this JSON value.
+
+
TRUE - Static variable in interface javax.json.JsonValue
+
+
JSON true value.
+
+
+ + + +

V

+
+
valueOf(String) - Static method in enum javax.json.JsonValue.ValueType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum javax.json.stream.JsonParser.Event
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum javax.json.JsonValue.ValueType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum javax.json.stream.JsonParser.Event
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
+ + + +

W

+
+
write(JsonStructure) - Method in interface javax.json.JsonWriter
+
+
Writes the specified JSON object or + array to the output source.
+
+
write(String, JsonValue) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/value pair in the current object context.
+
+
write(String, String) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/string value pair in the current object context.
+
+
write(String, BigInteger) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/number value pair in the current object context.
+
+
write(String, BigDecimal) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/number value pair in the current object context.
+
+
write(String, int) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/number value pair in the current object context.
+
+
write(String, long) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/number value pair in the current object context.
+
+
write(String, double) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/number value pair in the current object context.
+
+
write(String, boolean) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/boolean value pair in the current object context.
+
+
write(JsonValue) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON value within + the current array context.
+
+
write(String) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON string value within + the current array context.
+
+
write(BigDecimal) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON number value within + the current array context.
+
+
write(BigInteger) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON number value within + the current array context.
+
+
write(int) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON number value within + the current array context.
+
+
write(long) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON number value within + the current array context.
+
+
write(double) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the specified value as a JSON number value within the current + array context.
+
+
write(boolean) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON true or false value within the current array context.
+
+
writeArray(JsonArray) - Method in interface javax.json.JsonWriter
+
+
Writes the specified JSON array to the output + source.
+
+
writeEnd() - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the end of the current context.
+
+
writeNull(String) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON name/null value pair in an current object context.
+
+
writeNull() - Method in interface javax.json.stream.JsonGenerator
+
+
Writes a JSON null value within the current array context.
+
+
writeObject(JsonObject) - Method in interface javax.json.JsonWriter
+
+
Writes the specified JSON object to the output + source.
+
+
writeStartArray() - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the JSON start array character.
+
+
writeStartArray(String) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the JSON name/start array character pair with in the current + object context.
+
+
writeStartObject() - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the JSON start object character.
+
+
writeStartObject(String) - Method in interface javax.json.stream.JsonGenerator
+
+
Writes the JSON name/start object character pair in the current + object context.
+
+
+A B C D E F G H I J L N P R T V W 
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/index.html b/.settings/index.html new file mode 100644 index 0000000..633c686 --- /dev/null +++ b/.settings/index.html @@ -0,0 +1,34 @@ + + + + + + +JSR 353 (JSON Processing) API 1.0 API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/.settings/javax/json/Json.html b/.settings/javax/json/Json.html new file mode 100644 index 0000000..aa41532 --- /dev/null +++ b/.settings/javax/json/Json.html @@ -0,0 +1,542 @@ + + + + + + +Json (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Class Json

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • javax.json.Json
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Json
    +extends java.lang.Object
    +
    Factory class for creating JSON processing objects. + This class provides the most commonly used methods for creating these + objects and their corresponding factories. The factory classes provide + all the various ways to create these objects. + +

    + The methods in this class locate a provider instance using the method + JsonProvider.provider(). This class uses the provider instance + to create JSON processing objects. + +

    + The following example shows how to create a JSON parser to parse + an empty array: +

    + 
    + StringReader reader = new StringReader("[]");
    + JsonParser parser = Json.createParser(reader);
    + 
    + 
    + +

    + All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createParser

        +
        public static JsonParser createParser(java.io.Reader reader)
        +
        Creates a JSON parser from a character stream.
        +
        Parameters:
        reader - i/o reader from which JSON is to be read
        +
        Returns:
        a JSON parser
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        public static JsonParser createParser(java.io.InputStream in)
        +
        Creates a JSON parser from a byte stream. + The character encoding of the stream is determined as specified in + RFC 4627.
        +
        Parameters:
        in - i/o stream from which JSON is to be read
        +
        Returns:
        a JSON parser
        +
        Throws:
        +
        JsonException - if encoding cannot be determined + or i/o error (IOException would be cause of JsonException)
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        public static JsonGenerator createGenerator(java.io.Writer writer)
        +
        Creates a JSON generator for writing JSON to a character stream.
        +
        Parameters:
        writer - a i/o writer to which JSON is written
        +
        Returns:
        a JSON generator
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        public static JsonGenerator createGenerator(java.io.OutputStream out)
        +
        Creates a JSON generator for writing JSON to a byte stream.
        +
        Parameters:
        out - i/o stream to which JSON is written
        +
        Returns:
        a JSON generator
        +
      • +
      + + + +
        +
      • +

        createParserFactory

        +
        public static JsonParserFactory createParserFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a parser factory for creating JsonParser objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON parsers. The map may be empty or null
        +
        Returns:
        JSON parser factory
        +
      • +
      + + + +
        +
      • +

        createGeneratorFactory

        +
        public static JsonGeneratorFactory createGeneratorFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a generator factory for creating JsonGenerator objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON generators. The map may be empty or null
        +
        Returns:
        JSON generator factory
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        public static JsonWriter createWriter(java.io.Writer writer)
        +
        Creates a JSON writer to write a + JSON object or array + structure to the specified character stream.
        +
        Parameters:
        writer - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        public static JsonWriter createWriter(java.io.OutputStream out)
        +
        Creates a JSON writer to write a + JSON object or array + structure to the specified byte stream. Characters written to + the stream are encoded into bytes using UTF-8 encoding.
        +
        Parameters:
        out - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        public static JsonReader createReader(java.io.Reader reader)
        +
        Creates a JSON reader from a character stream.
        +
        Parameters:
        reader - a reader from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        public static JsonReader createReader(java.io.InputStream in)
        +
        Creates a JSON reader from a byte stream. The character encoding of + the stream is determined as described in + RFC 4627.
        +
        Parameters:
        in - a byte stream from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createReaderFactory

        +
        public static JsonReaderFactory createReaderFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a reader factory for creating JsonReader objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON readers. The map may be empty or null
        +
        Returns:
        a JSON reader factory
        +
      • +
      + + + +
        +
      • +

        createWriterFactory

        +
        public static JsonWriterFactory createWriterFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a writer factory for creating JsonWriter objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON writers. The map may be empty or null
        +
        Returns:
        a JSON writer factory
        +
      • +
      + + + +
        +
      • +

        createArrayBuilder

        +
        public static JsonArrayBuilder createArrayBuilder()
        +
        Creates a JSON array builder
        +
        Returns:
        a JSON array builder
        +
      • +
      + + + +
        +
      • +

        createObjectBuilder

        +
        public static JsonObjectBuilder createObjectBuilder()
        +
        Creates a JSON object builder
        +
        Returns:
        a JSON object builder
        +
      • +
      + + + +
        +
      • +

        createBuilderFactory

        +
        public static JsonBuilderFactory createBuilderFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a builder factory for creating JsonArrayBuilder + and JsonObjectBuilder objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON builders. The map may be empty or null
        +
        Returns:
        a JSON builder factory
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonArray.html b/.settings/javax/json/JsonArray.html new file mode 100644 index 0000000..03eb373 --- /dev/null +++ b/.settings/javax/json/JsonArray.html @@ -0,0 +1,598 @@ + + + + + + +JsonArray (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonArray

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    java.util.Collection<JsonValue>, java.lang.Iterable<JsonValue>, JsonStructure, JsonValue, java.util.List<JsonValue>
    +
    +
    +
    +
    public interface JsonArray
    +extends JsonStructure, java.util.List<JsonValue>
    +
    JsonArray represents an immutable JSON array + (an ordered sequence of zero or more values). + It also provides an unmodifiable list view of the values in the array. + +

    A JsonArray object can be created by reading JSON data from + an input source or it can be built from scratch using an array builder + object. + +

    The following example demonstrates how to create a JsonArray + object from an input source using the method JsonReader.readArray(): +

    
    + JsonReader jsonReader = Json.createReader(...);
    + JsonArray array = jsonReader.readArray();
    + jsonReader.close();
    + 
    + +

    The following example demonstrates how to build an empty JSON array + using the class JsonArrayBuilder: +

    
    + JsonArray array = Json.createArrayBuilder().build();
    + 
    + +

    The example code below demonstrates how to create the following JSON array: +

    
    + [
    +     { "type": "home", "number": "212 555-1234" },
    +     { "type": "fax", "number": "646 555-4567" }
    + ]
    + 
    +
    
    + JsonArray value = Json.createArrayBuilder()
    +     .add(Json.createObjectBuilder()
    +         .add("type", "home")
    +         .add("number", "212 555-1234"))
    +     .add(Json.createObjectBuilder()
    +         .add("type", "fax")
    +         .add("number", "646 555-4567"))
    +     .build();
    + 
    + +

    The following example demonstrates how to write a JsonArray object + as JSON data: +

    
    + JsonArray arr = ...;
    + JsonWriter writer = Json.createWriter(...)
    + writer.writeArray(arr);
    + writer.close();
    + 
    + +

    The values in a JsonArray can be of the following types: + JsonObject, JsonArray, + JsonString, JsonNumber, JsonValue.TRUE, + JsonValue.FALSE, and JsonValue.NULL. + JsonArray provides various accessor methods to access the values + in an array. + +

    The following example shows how to obtain the home phone number + "212 555-1234" from the array built in the previous example: +

    
    + JsonObject home = array.getJsonObject(0);
    + String number = home.getString("number");
    + 
    + +

    JsonArray instances are list objects that provide read-only + access to the values in the JSON array. Any attempt to modify the list, + whether directly or using its collection views, results in an + UnsupportedOperationException.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleangetBoolean(int index) +
      Returns the boolean value at the specified position.
      +
      booleangetBoolean(int index, + boolean defaultValue) +
      Returns the boolean value at the specified position.
      +
      intgetInt(int index) +
      A convenience method for + getJsonNumber(index).intValue().
      +
      intgetInt(int index, + int defaultValue) +
      Returns the int value of the JsonNumber at the specified position.
      +
      JsonArraygetJsonArray(int index) +
      Returns the array value at the specified position in this array.
      +
      JsonNumbergetJsonNumber(int index) +
      Returns the number value at the specified position in this array.
      +
      JsonObjectgetJsonObject(int index) +
      Returns the object value at the specified position in this array.
      +
      JsonStringgetJsonString(int index) +
      Returns the string value at ths specified position in this array.
      +
      java.lang.StringgetString(int index) +
      A convenience method for + getJsonString(index).getString().
      +
      java.lang.StringgetString(int index, + java.lang.String defaultValue) +
      Returns the String value of JsonString at the specified + position in this JSON array values.
      +
      <T extends JsonValue
      java.util.List<T>
      getValuesAs(java.lang.Class<T> clazz) +
      Returns a list a view of the specified type for the array.
      +
      booleanisNull(int index) +
      Returns true if the value at the specified location in this + array is JsonValue.NULL.
      +
      + +
        +
      • + + +

        Methods inherited from interface java.util.List

        +add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getJsonObject

        +
        JsonObject getJsonObject(int index)
        +
        Returns the object value at the specified position in this array. + This is a convenience method for (JsonObject)get(index).
        +
        Parameters:
        index - index of the value to be returned
        +
        Returns:
        the value at the specified position in this array
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to the JsonObject type
        +
      • +
      + + + +
        +
      • +

        getJsonArray

        +
        JsonArray getJsonArray(int index)
        +
        Returns the array value at the specified position in this array. + This is a convenience method for (JsonArray)get(index).
        +
        Parameters:
        index - index of the value to be returned
        +
        Returns:
        the value at the specified position in this array
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to the JsonArray type
        +
      • +
      + + + +
        +
      • +

        getJsonNumber

        +
        JsonNumber getJsonNumber(int index)
        +
        Returns the number value at the specified position in this array. + This is a convenience method for (JsonNumber)get(index).
        +
        Parameters:
        index - index of the value to be returned
        +
        Returns:
        the value at the specified position in this array
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to the JsonNumber type
        +
      • +
      + + + +
        +
      • +

        getJsonString

        +
        JsonString getJsonString(int index)
        +
        Returns the string value at ths specified position in this array. + This is a convenience method for (JsonString)get(index).
        +
        Parameters:
        index - index of the value to be returned
        +
        Returns:
        the value at the specified position in this array
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to the JsonString type
        +
      • +
      + + + +
        +
      • +

        getValuesAs

        +
        <T extends JsonValue> java.util.List<T> getValuesAs(java.lang.Class<T> clazz)
        +
        Returns a list a view of the specified type for the array. This method + does not verify if there is a value of wrong type in the array. Providing + this typesafe view dynamically may cause a program fail with a + ClassCastException, if there is a value of wrong type in this + array. Unfortunately, the exception can occur at any time after this + method returns.
        +
        Parameters:
        clazz - a JsonValue type
        +
        Returns:
        a list view of the specified type
        +
      • +
      + + + +
        +
      • +

        getString

        +
        java.lang.String getString(int index)
        +
        A convenience method for + getJsonString(index).getString().
        +
        Parameters:
        index - index of the JsonString value
        +
        Returns:
        the String value at the specified position
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to JsonString
        +
      • +
      + + + +
        +
      • +

        getString

        +
        java.lang.String getString(int index,
        +                         java.lang.String defaultValue)
        +
        Returns the String value of JsonString at the specified + position in this JSON array values. If JsonString is found, + its JsonString.getString() is returned. Otherwise, + the specified default value is returned.
        +
        Parameters:
        index - index of the JsonString value
        +
        Returns:
        the String value at the specified position in this array, + or the specified default value
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        int getInt(int index)
        +
        A convenience method for + getJsonNumber(index).intValue().
        +
        Parameters:
        index - index of the JsonNumber value
        +
        Returns:
        the int value at the specified position
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to JsonNumber
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        int getInt(int index,
        +         int defaultValue)
        +
        Returns the int value of the JsonNumber at the specified position. + If the value at that position is a JsonNumber, + this method returns JsonNumber.intValue(). Otherwise + this method returns the specified default value.
        +
        Parameters:
        index - index of the JsonNumber value
        +
        Returns:
        the int value at the specified position in this array, + or the specified default value
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        boolean getBoolean(int index)
        +
        Returns the boolean value at the specified position. + If the value at the specified position is JsonValue.TRUE + this method returns true. If the value at the specified position + is JsonValue.FALSE this method returns false.
        +
        Parameters:
        index - index of the JSON boolean value
        +
        Returns:
        the boolean value at the specified position
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
        java.lang.ClassCastException - if the value at the specified position is not + assignable to JsonValue.TRUE or JsonValue.FALSE
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        boolean getBoolean(int index,
        +                 boolean defaultValue)
        +
        Returns the boolean value at the specified position. + If the value at the specified position is JsonValue.TRUE + this method returns true. If the value at the specified position + is JsonValue.FALSE this method returns false. + Otherwise this method returns the specified default value.
        +
        Parameters:
        index - index of the JSON boolean value
        +
        Returns:
        the boolean value at the specified position, + or the specified default value
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        boolean isNull(int index)
        +
        Returns true if the value at the specified location in this + array is JsonValue.NULL.
        +
        Parameters:
        index - index of the JSON null value
        +
        Returns:
        return true if the value at the specified location is + JsonValue.NUL, otherwise false
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - if the index is out of range
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonArrayBuilder.html b/.settings/javax/json/JsonArrayBuilder.html new file mode 100644 index 0000000..7e111be --- /dev/null +++ b/.settings/javax/json/JsonArrayBuilder.html @@ -0,0 +1,477 @@ + + + + + + +JsonArrayBuilder (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonArrayBuilder

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(JsonValue value)
        +
        Adds a value to the array.
        +
        Parameters:
        value - the JSON value
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified value is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(java.lang.String value)
        +
        Adds a value to the array as a JsonString.
        +
        Parameters:
        value - the string value
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified value is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(java.math.BigDecimal value)
        +
        Adds a value to the array as a JsonNumber.
        +
        Parameters:
        value - the number value
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified value is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(java.math.BigInteger value)
        +
        Adds a value to the array as a JsonNumber.
        +
        Parameters:
        value - the number value
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified value is null
        See Also:
        JsonNumber
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(double value)
        +
        Adds a value to the array as a JsonNumber.
        +
        Parameters:
        value - the number value
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NumberFormatException - if the value is Not-a-Number(NaN) or + infinity
        See Also:
        JsonNumber
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(JsonObjectBuilder builder)
        +
        Adds a JsonObject from an object builder to the array.
        +
        Parameters:
        builder - the object builder
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified builder is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonArrayBuilder add(JsonArrayBuilder builder)
        +
        Adds a JsonArray from an array builder to the array.
        +
        Parameters:
        builder - the array builder
        +
        Returns:
        this array builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified builder is null
        +
      • +
      + + + +
        +
      • +

        build

        +
        JsonArray build()
        +
        Returns the current array.
        +
        Returns:
        the current JSON array
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonBuilderFactory.html b/.settings/javax/json/JsonBuilderFactory.html new file mode 100644 index 0000000..7f2ebfe --- /dev/null +++ b/.settings/javax/json/JsonBuilderFactory.html @@ -0,0 +1,284 @@ + + + + + + +JsonBuilderFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonBuilderFactory

+
+
+
+
    +
  • +
    +
    +
    public interface JsonBuilderFactory
    +
    Factory to create JsonObjectBuilder and JsonArrayBuilder + instances. If a factory instance is configured with some configuration, + that would be used to configure the created builder instances. + +

    + JsonObjectBuilder and JsonArrayBuilder can also be created + using Json's methods. If multiple builder instances are created, + then creating them using a builder factory is preferred. + +

    + For example: +

    + 
    + JsonBuilderFactory factory = Json.createBuilderFactory(...);
    + JsonArray value = factory.createArrayBuilder()
    +     .add(factory.createObjectBuilder()
    +         .add("type", "home")
    +         .add("number", "212 555-1234"))
    +     .add(factory.createObjectBuilder()
    +         .add("type", "fax")
    +         .add("number", "646 555-4567"))
    +     .build();
    + 
    + 
    + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createObjectBuilder

        +
        JsonObjectBuilder createObjectBuilder()
        +
        Creates a JsonObjectBuilder instance that is used to build + JsonObject.
        +
        Returns:
        a JSON object builder
        +
      • +
      + + + +
        +
      • +

        createArrayBuilder

        +
        JsonArrayBuilder createArrayBuilder()
        +
        Creates a JsonArrayBuilder instance that is used to build + JsonArray
        +
        Returns:
        a JSON array builder
        +
      • +
      + + + +
        +
      • +

        getConfigInUse

        +
        java.util.Map<java.lang.String,?> getConfigInUse()
        +
        Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON builders. + If there are any specified configuration properties that are not + supported by the provider, they won't be part of the returned map.
        +
        Returns:
        a map of supported provider specific properties that are used + to configure the builders. The map be empty but not null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonException.html b/.settings/javax/json/JsonException.html new file mode 100644 index 0000000..0b8056e --- /dev/null +++ b/.settings/javax/json/JsonException.html @@ -0,0 +1,298 @@ + + + + + + +JsonException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Class JsonException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.lang.RuntimeException
        • +
        • +
            +
          • javax.json.JsonException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Direct Known Subclasses:
    +
    JsonGenerationException, JsonParsingException
    +
    +
    +
    +
    public class JsonException
    +extends java.lang.RuntimeException
    +
    JsonException indicates that some exception happened during + JSON processing.
    +
    Author:
    +
    Jitendra Kotamraju
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonException(java.lang.String message) +
      Constructs a new runtime exception with the specified detail message.
      +
      JsonException(java.lang.String message, + java.lang.Throwable cause) +
      Constructs a new runtime exception with the specified detail message and + cause.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonException

        +
        public JsonException(java.lang.String message)
        +
        Constructs a new runtime exception with the specified detail message. + The cause is not initialized, and may subsequently be initialized by a + call to Throwable.initCause(java.lang.Throwable).
        +
        Parameters:
        message - the detail message. The detail message is saved for + later retrieval by the Throwable.getMessage() method.
        +
      • +
      + + + +
        +
      • +

        JsonException

        +
        public JsonException(java.lang.String message,
        +             java.lang.Throwable cause)
        +
        Constructs a new runtime exception with the specified detail message and + cause.

        Note that the detail message associated with + cause is not automatically incorporated in + this runtime exception's detail message.

        +
        Parameters:
        message - the detail message (which is saved for later retrieval + by the Throwable.getMessage() method).
        cause - the cause (which is saved for later retrieval by the + Throwable.getCause() method). (A null value is + permitted, and indicates that the cause is nonexistent or + unknown.)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonNumber.html b/.settings/javax/json/JsonNumber.html new file mode 100644 index 0000000..b651adb --- /dev/null +++ b/.settings/javax/json/JsonNumber.html @@ -0,0 +1,513 @@ + + + + + + +JsonNumber (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonNumber

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    JsonValue
    +
    +
    +
    +
    public interface JsonNumber
    +extends JsonValue
    +
    An immutable JSON number value. + +

    + Implementations may use a BigDecimal object to store the numeric + value internally. + The BigDecimal object can be constructed from the following types: + int, + long, + BigInteger, + double, and + String. + Some of the method semantics in this class are defined using the + BigDecimal semantics.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.math.BigDecimalbigDecimalValue() +
      Returns this JSON number as a BigDecimal object.
      +
      java.math.BigIntegerbigIntegerValue() +
      Returns this JSON number as a BigInteger object.
      +
      java.math.BigIntegerbigIntegerValueExact() +
      Returns this JSON number as a BigDecimal object.
      +
      doubledoubleValue() +
      Returns this JSON number as a double.
      +
      booleanequals(java.lang.Object obj) +
      Compares the specified object with this JsonNumber object for + equality.
      +
      inthashCode() +
      Returns the hash code value for this JsonNumber object.
      +
      intintValue() +
      Returns this JSON number as an int.
      +
      intintValueExact() +
      Returns this JSON number as an int.
      +
      booleanisIntegral() +
      Returns true if this JSON number is a integral number.
      +
      longlongValue() +
      Returns this JSON number as a long.
      +
      longlongValueExact() +
      Returns this JSON number as a long.
      +
      java.lang.StringtoString() +
      Returns a JSON text representation of the JSON number.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isIntegral

        +
        boolean isIntegral()
        +
        Returns true if this JSON number is a integral number. This method + semantics are defined using bigDecimalValue().scale(). If the + scale is zero, then it is considered integral type. This integral type + information can be used to invoke an appropriate accessor method to + obtain a numeric value as in the following example: + +
        + 
        + JsonNumber num = ...
        + if (num.isIntegral()) {
        +     num.longValue();     // or other methods to get integral value
        + } else {
        +     num.doubleValue();   // or other methods to get decimal number value
        + }
        + 
        + 
        +
        Returns:
        true if this number is a integral number, otherwise false
        +
      • +
      + + + +
        +
      • +

        intValue

        +
        int intValue()
        +
        Returns this JSON number as an int. Note that this conversion + can lose information about the overall magnitude and precision of the + number value as well as return a result with the opposite sign.
        +
        Returns:
        an int representation of the JSON number
        See Also:
        BigDecimal.intValue()
        +
      • +
      + + + +
        +
      • +

        intValueExact

        +
        int intValueExact()
        +
        Returns this JSON number as an int.
        +
        Returns:
        an int representation of the JSON number
        +
        Throws:
        +
        java.lang.ArithmeticException - if the number has a nonzero fractional + part or if it does not fit in an int
        See Also:
        BigDecimal.intValueExact()
        +
      • +
      + + + +
        +
      • +

        longValue

        +
        long longValue()
        +
        Returns this JSON number as a long. Note that this conversion + can lose information about the overall magnitude and precision of the + number value as well as return a result with the opposite sign.
        +
        Returns:
        a long representation of the JSON number.
        See Also:
        BigDecimal.longValue()
        +
      • +
      + + + +
        +
      • +

        longValueExact

        +
        long longValueExact()
        +
        Returns this JSON number as a long.
        +
        Returns:
        a long representation of the JSON number
        +
        Throws:
        +
        java.lang.ArithmeticException - if the number has a non-zero fractional + part or if it does not fit in a long
        See Also:
        BigDecimal.longValueExact()
        +
      • +
      + + + +
        +
      • +

        bigIntegerValue

        +
        java.math.BigInteger bigIntegerValue()
        +
        Returns this JSON number as a BigInteger object. This is a + a convenience method for bigDecimalValue().toBigInteger(). + Note that this conversion can lose information about the overall + magnitude and precision of the number value as well as return a result + with the opposite sign.
        +
        Returns:
        a BigInteger representation of the JSON number.
        See Also:
        BigDecimal.toBigInteger()
        +
      • +
      + + + +
        +
      • +

        bigIntegerValueExact

        +
        java.math.BigInteger bigIntegerValueExact()
        +
        Returns this JSON number as a BigDecimal object. This is a + convenience method for bigDecimalValue().toBigIntegerExact().
        +
        Returns:
        a BigInteger representation of the JSON number
        +
        Throws:
        +
        java.lang.ArithmeticException - if the number has a nonzero fractional part
        See Also:
        BigDecimal.toBigIntegerExact()
        +
      • +
      + + + +
        +
      • +

        doubleValue

        +
        double doubleValue()
        +
        Returns this JSON number as a double. This is a + a convenience method for bigDecimalValue().doubleValue(). + Note that this conversion can lose information about the overall + magnitude and precision of the number value as well as return a result + with the opposite sign.
        +
        Returns:
        a double representation of the JSON number
        See Also:
        BigDecimal.doubleValue()
        +
      • +
      + + + +
        +
      • +

        bigDecimalValue

        +
        java.math.BigDecimal bigDecimalValue()
        +
        Returns this JSON number as a BigDecimal object.
        +
        Returns:
        a BigDecimal representation of the JSON number
        +
      • +
      + + + +
        +
      • +

        toString

        +
        java.lang.String toString()
        +
        Returns a JSON text representation of the JSON number. The + representation is equivalent to BigDecimal.toString().
        +
        +
        Specified by:
        +
        toString in interface JsonValue
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        JSON text representation of the number
        +
      • +
      + + + +
        +
      • +

        equals

        +
        boolean equals(java.lang.Object obj)
        +
        Compares the specified object with this JsonNumber object for + equality. Returns true if and only if the type of the specified + object is also JsonNumber and their bigDecimalValue() + objects are equal
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        Parameters:
        obj - the object to be compared for equality with + this JsonNumber
        +
        Returns:
        true if the specified object is equal to this + JsonNumber
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        int hashCode()
        +
        Returns the hash code value for this JsonNumber object. The + hash code of a JsonNumber object is defined as the hash code of + its bigDecimalValue() object.
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        Returns:
        the hash code value for this JsonNumber object
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonObject.html b/.settings/javax/json/JsonObject.html new file mode 100644 index 0000000..6aec35d --- /dev/null +++ b/.settings/javax/json/JsonObject.html @@ -0,0 +1,605 @@ + + + + + + +JsonObject (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonObject

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    JsonStructure, JsonValue, java.util.Map<java.lang.String,JsonValue>
    +
    +
    +
    +
    public interface JsonObject
    +extends JsonStructure, java.util.Map<java.lang.String,JsonValue>
    +
    JsonObject class represents an immutable JSON object value + (an unordered collection of zero or more name/value pairs). + It also provides unmodifiable map view to the JSON object + name/value mappings. + +

    A JsonObject instance can be created from an input source using + JsonReader.readObject(). For example: +

    
    + JsonReader jsonReader = Json.createReader(...);
    + JsonObject object = jsonReader.readObject();
    + jsonReader.close();
    + 
    + + It can also be built from scratch using a JsonObjectBuilder. + +

    For example 1: An empty JSON object can be built as follows: +

    
    + JsonObject object = Json.createObjectBuilder().build();
    + 
    + + For example 2: The following JSON +
    
    + {
    +     "firstName": "John", "lastName": "Smith", "age": 25,
    +     "address" : {
    +         "streetAddress": "21 2nd Street",
    +         "city": "New York",
    +         "state": "NY",
    +         "postalCode": "10021"
    +     },
    +     "phoneNumber": [
    +         { "type": "home", "number": "212 555-1234" },
    +         { "type": "fax", "number": "646 555-4567" }
    +     ]
    + }
    + 
    + can be built using : +
    
    + JsonObject value = Json.createObjectBuilder()
    +     .add("firstName", "John")
    +     .add("lastName", "Smith")
    +     .add("age", 25)
    +     .add("address", Json.createObjectBuilder()
    +         .add("streetAddress", "21 2nd Street")
    +         .add("city", "New York")
    +         .add("state", "NY")
    +         .add("postalCode", "10021"))
    +     .add("phoneNumber", Json.createArrayBuilder()
    +         .add(Json.createObjectBuilder()
    +             .add("type", "home")
    +             .add("number", "212 555-1234"))
    +         .add(Json.createObjectBuilder()
    +             .add("type", "fax")
    +             .add("number", "646 555-4567")))
    +     .build();
    + 
    + + JsonObject can be written to JSON as follows: +
    
    + JsonWriter writer = ...
    + JsonObject obj = ...;
    + writer.writeObject(obj);
    + 
    + + JsonObject values can be JsonObject, JsonArray, + JsonString, JsonNumber, JsonValue.TRUE, + JsonValue.FALSE, JsonValue.NULL. These values can be + accessed using various accessor methods. + +

    In the above example 2, "John" can be got using +

    
    + String firstName = object.getString("firstName");
    + 
    + + This map object provides read-only access to the JSON object data, + and attempts to modify the map, whether direct or via its collection + views, result in an UnsupportedOperationException. + +

    The map object's iteration ordering is based on the order in which + name/value pairs are added to the corresponding builder or the order + in which name/value pairs appear in the corresponding stream.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + +
        +
      • + + +

        Nested classes/interfaces inherited from interface java.util.Map

        +java.util.Map.Entry<K,V>
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleangetBoolean(java.lang.String name) +
      Returns the boolean value of the associated mapping for the specified + name.
      +
      booleangetBoolean(java.lang.String name, + boolean defaultValue) +
      Returns the boolean value of the associated mapping for the specified + name.
      +
      intgetInt(java.lang.String name) +
      A convenience method for + getJsonNumber(name).intValue()
      +
      intgetInt(java.lang.String name, + int defaultValue) +
      Returns the int value of the associated JsonNumber mapping + for the specified name.
      +
      JsonArraygetJsonArray(java.lang.String name) +
      Returns the array value to which the specified name is mapped.
      +
      JsonNumbergetJsonNumber(java.lang.String name) +
      Returns the number value to which the specified name is mapped.
      +
      JsonObjectgetJsonObject(java.lang.String name) +
      Returns the object value to which the specified name is mapped.
      +
      JsonStringgetJsonString(java.lang.String name) +
      Returns the string value to which the specified name is mapped.
      +
      java.lang.StringgetString(java.lang.String name) +
      A convenience method for + getJsonString(name).getString()
      +
      java.lang.StringgetString(java.lang.String name, + java.lang.String defaultValue) +
      Returns the string value of the associated JsonString mapping + for the specified name.
      +
      booleanisNull(java.lang.String name) +
      Returns true if the associated value for the specified name is + JsonValue.NULL.
      +
      + +
        +
      • + + +

        Methods inherited from interface java.util.Map

        +clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getJsonArray

        +
        JsonArray getJsonArray(java.lang.String name)
        +
        Returns the array value to which the specified name is mapped. + This is a convenience method for (JsonArray)get(name) to + get the value.
        +
        Parameters:
        name - the name whose associated value is to be returned
        +
        Returns:
        the array value to which the specified name is mapped, or + null if this object contains no mapping for the name
        +
        Throws:
        +
        java.lang.ClassCastException - if the value to which the specified name + is mapped is not assignable to JsonArray type
        +
      • +
      + + + +
        +
      • +

        getJsonObject

        +
        JsonObject getJsonObject(java.lang.String name)
        +
        Returns the object value to which the specified name is mapped. + This is a convenience method for (JsonObject)get(name) to + get the value.
        +
        Parameters:
        name - the name whose associated value is to be returned
        +
        Returns:
        the object value to which the specified name is mapped, or + null if this object contains no mapping for the name
        +
        Throws:
        +
        java.lang.ClassCastException - if the value to which the specified name + is mapped is not assignable to JsonObject type
        +
      • +
      + + + +
        +
      • +

        getJsonNumber

        +
        JsonNumber getJsonNumber(java.lang.String name)
        +
        Returns the number value to which the specified name is mapped. + This is a convenience method for (JsonNumber)get(name) to + get the value.
        +
        Parameters:
        name - the name whose associated value is to be returned
        +
        Returns:
        the number value to which the specified name is mapped, or + null if this object contains no mapping for the name
        +
        Throws:
        +
        java.lang.ClassCastException - if the value to which the specified name + is mapped is not assignable to JsonNumber type
        +
      • +
      + + + +
        +
      • +

        getJsonString

        +
        JsonString getJsonString(java.lang.String name)
        +
        Returns the string value to which the specified name is mapped. + This is a convenience method for (JsonString)get(name) to + get the value.
        +
        Parameters:
        name - the name whose associated value is to be returned
        +
        Returns:
        the string value to which the specified name is mapped, or + null if this object contains no mapping for the name
        +
        Throws:
        +
        java.lang.ClassCastException - if the value to which the specified name + is mapped is not assignable to JsonString type
        +
      • +
      + + + +
        +
      • +

        getString

        +
        java.lang.String getString(java.lang.String name)
        +
        A convenience method for + getJsonString(name).getString()
        +
        Parameters:
        name - whose associated value is to be returned as String
        +
        Returns:
        the String value to which the specified name is mapped
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name doesn't have any + mapping
        +
        java.lang.ClassCastException - if the value for specified name mapping + is not assignable to JsonString
        +
      • +
      + + + +
        +
      • +

        getString

        +
        java.lang.String getString(java.lang.String name,
        +                         java.lang.String defaultValue)
        +
        Returns the string value of the associated JsonString mapping + for the specified name. If JsonString is found, then its + JsonString.getString() is returned. Otherwise, + the specified default value is returned.
        +
        Parameters:
        name - whose associated value is to be returned as String
        defaultValue - a default value to be returned
        +
        Returns:
        the string value of the associated mapping for the name, + or the default value
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        int getInt(java.lang.String name)
        +
        A convenience method for + getJsonNumber(name).intValue()
        +
        Parameters:
        name - whose associated value is to be returned as int
        +
        Returns:
        the int value to which the specified name is mapped
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name doesn't have any + mapping
        +
        java.lang.ClassCastException - if the value for specified name mapping + is not assignable to JsonNumber
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        int getInt(java.lang.String name,
        +         int defaultValue)
        +
        Returns the int value of the associated JsonNumber mapping + for the specified name. If JsonNumber is found, then its + JsonNumber.intValue() is returned. Otherwise, + the specified default value is returned.
        +
        Parameters:
        name - whose associated value is to be returned as int
        defaultValue - a default value to be returned
        +
        Returns:
        the int value of the associated mapping for the name, + or the default value
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        boolean getBoolean(java.lang.String name)
        +
        Returns the boolean value of the associated mapping for the specified + name. If the associated mapping is JsonValue.TRUE, then returns true. + If the associated mapping is JsonValue.FALSE, then returns false.
        +
        Parameters:
        name - whose associated value is to be returned as boolean
        +
        Returns:
        the boolean value to which the specified name is mapped
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name doesn't have any + mapping
        +
        java.lang.ClassCastException - if the value for specified name mapping + is not assignable to JsonValue.TRUE or JsonValue.FALSE
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        boolean getBoolean(java.lang.String name,
        +                 boolean defaultValue)
        +
        Returns the boolean value of the associated mapping for the specified + name. If the associated mapping is JsonValue.TRUE, then returns true. + If the associated mapping is JsonValue.FALSE, then returns false. + Otherwise, the specified default value is returned.
        +
        Parameters:
        name - whose associated value is to be returned as int
        defaultValue - a default value to be returned
        +
        Returns:
        the boolean value of the associated mapping for the name, + or the default value
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        boolean isNull(java.lang.String name)
        +
        Returns true if the associated value for the specified name is + JsonValue.NULL.
        +
        Parameters:
        name - name whose associated value is checked
        +
        Returns:
        return true if the associated value is JsonValue.NUL, + otherwise false
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name doesn't have any + mapping
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonObjectBuilder.html b/.settings/javax/json/JsonObjectBuilder.html new file mode 100644 index 0000000..45b1e97 --- /dev/null +++ b/.settings/javax/json/JsonObjectBuilder.html @@ -0,0 +1,566 @@ + + + + + + +JsonObjectBuilder (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonObjectBuilder

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonObjectBuilderadd(java.lang.String name, + java.math.BigDecimal value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + java.math.BigInteger value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + boolean value) +
      Adds a name/JsonValue#TRUE or name/JsonValue#FALSE pair + to the JSON object associated with this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + double value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + int value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + JsonArrayBuilder builder) +
      Adds a name/JsonArray pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + JsonObjectBuilder builder) +
      Adds a name/JsonObject pair to the JSON object associated + with this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + JsonValue value) +
      Adds a name/JsonValue pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + long value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderadd(java.lang.String name, + java.lang.String value) +
      Adds a name/JsonString pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderaddNull(java.lang.String name) +
      Adds a name/JsonValue#NULL pair to the JSON object associated + with this object builder where the value is null.
      +
      JsonObjectbuild() +
      Returns the JSON object associated with this object builder.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    JsonValue value)
        +
        Adds a name/JsonValue pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or value is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    java.lang.String value)
        +
        Adds a name/JsonString pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or value is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    java.math.BigInteger value)
        +
        Adds a name/JsonNumber pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or value is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    java.math.BigDecimal value)
        +
        Adds a name/JsonNumber pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or value is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    int value)
        +
        Adds a name/JsonNumber pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    long value)
        +
        Adds a name/JsonNumber pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    double value)
        +
        Adds a name/JsonNumber pair to the JSON object associated with + this object builder. If the object contains a mapping for the specified + name, this method replaces the old value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NumberFormatException - if the value is Not-a-Number(NaN) or + infinity
        +
        java.lang.NullPointerException - if the specified name is null
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    boolean value)
        +
        Adds a name/JsonValue#TRUE or name/JsonValue#FALSE pair + to the JSON object associated with this object builder. If the object + contains a mapping for the specified name, this method replaces the old + value with the specified value.
        +
        Parameters:
        name - name in the name/value pair
        value - value in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name is null
        +
      • +
      + + + +
        +
      • +

        addNull

        +
        JsonObjectBuilder addNull(java.lang.String name)
        +
        Adds a name/JsonValue#NULL pair to the JSON object associated + with this object builder where the value is null. + If the object contains a mapping for the specified name, this method + replaces the old value with null.
        +
        Parameters:
        name - name in the name/value pair
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    JsonObjectBuilder builder)
        +
        Adds a name/JsonObject pair to the JSON object associated + with this object builder. The value JsonObject is built from the + specified object builder. If the object contains a mapping for the + specified name, this method replaces the old value with the + JsonObject from the specified object builder.
        +
        Parameters:
        name - name in the name/value pair
        builder - the value is the object associated with this builder
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or builder is null
        +
      • +
      + + + +
        +
      • +

        add

        +
        JsonObjectBuilder add(java.lang.String name,
        +                    JsonArrayBuilder builder)
        +
        Adds a name/JsonArray pair to the JSON object associated with + this object builder. The value JsonArray is built from the + specified array builder. If the object contains a mapping for the + specified name, this method replaces the old value with the + JsonArray from the specified array builder.
        +
        Parameters:
        name - the name in the name/value pair
        builder - the value is the object array with this builder
        +
        Returns:
        this object builder
        +
        Throws:
        +
        java.lang.NullPointerException - if the specified name or builder is null
        +
      • +
      + + + +
        +
      • +

        build

        +
        JsonObject build()
        +
        Returns the JSON object associated with this object builder. + The iteration order for the JsonObject is based + on the order in which name/value pairs are added to the object using + this builder.
        +
        Returns:
        JSON object that is being built
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonReader.html b/.settings/javax/json/JsonReader.html new file mode 100644 index 0000000..5cee04d --- /dev/null +++ b/.settings/javax/json/JsonReader.html @@ -0,0 +1,343 @@ + + + + + + +JsonReader (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonReader

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes this reader and frees any resources associated with the + reader.
      +
      JsonStructureread() +
      Returns a JSON array or object that is represented in + the input source.
      +
      JsonArrayreadArray() +
      Returns a JSON array that is represented in + the input source.
      +
      JsonObjectreadObject() +
      Returns a JSON object that is represented in + the input source.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        JsonStructure read()
        +
        Returns a JSON array or object that is represented in + the input source. This method needs to be called + only once for a reader instance.
        +
        Returns:
        a JSON object or array
        +
        Throws:
        +
        JsonException - if a JSON object or array cannot + be created due to i/o error (IOException would be + cause of JsonException)
        +
        JsonParsingException - if a JSON object or array + cannot be created due to incorrect representation
        +
        java.lang.IllegalStateException - if read, readObject, readArray or + close method is already called
        +
      • +
      + + + +
        +
      • +

        readObject

        +
        JsonObject readObject()
        +
        Returns a JSON object that is represented in + the input source. This method needs to be called + only once for a reader instance.
        +
        Returns:
        a JSON object
        +
        Throws:
        +
        JsonException - if a JSON object cannot + be created due to i/o error (IOException would be + cause of JsonException)
        +
        JsonParsingException - if a JSON object cannot + be created due to incorrect representation
        +
        java.lang.IllegalStateException - if read, readObject, readArray or + close method is already called
        +
      • +
      + + + +
        +
      • +

        readArray

        +
        JsonArray readArray()
        +
        Returns a JSON array that is represented in + the input source. This method needs to be called + only once for a reader instance.
        +
        Returns:
        a JSON array
        +
        Throws:
        +
        JsonException - if a JSON array cannot + be created due to i/o error (IOException would be + cause of JsonException)
        +
        JsonParsingException - if a JSON array cannot + be created due to incorrect representation
        +
        java.lang.IllegalStateException - if read, readObject, readArray or + close method is already called
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +
        Closes this reader and frees any resources associated with the + reader. This method closes the underlying input source.
        +
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException would be + cause of JsonException)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonReaderFactory.html b/.settings/javax/json/JsonReaderFactory.html new file mode 100644 index 0000000..dbedc3b --- /dev/null +++ b/.settings/javax/json/JsonReaderFactory.html @@ -0,0 +1,302 @@ + + + + + + +JsonReaderFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonReaderFactory

+
+
+
+
    +
  • +
    +
    +
    public interface JsonReaderFactory
    +
    Factory to create JsonReader instances. If a factory + instance is configured with some configuration, that would be + used to configure the created reader instances. + +

    + JsonReader can also be created using Json's + createReader methods. If multiple reader instances are created, + then creating them using a reader factory is preferred. + +

    + For example: +

    + 
    + JsonReaderFactory factory = Json.createReaderFactory(...);
    + JsonReader reader1 = factory.createReader(...);
    + JsonReader reader2 = factory.createReader(...);
    + 
    + 
    + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonReadercreateReader(java.io.InputStream in) +
      Creates a JSON reader from a byte stream.
      +
      JsonReadercreateReader(java.io.InputStream in, + java.nio.charset.Charset charset) +
      Creates a JSON reader from a byte stream.
      +
      JsonReadercreateReader(java.io.Reader reader) +
      Creates a JSON reader from a character stream.
      +
      java.util.Map<java.lang.String,?>getConfigInUse() +
      Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON readers.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createReader

        +
        JsonReader createReader(java.io.Reader reader)
        +
        Creates a JSON reader from a character stream. The reader is configured + with the factory configuration.
        +
        Parameters:
        reader - a reader from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        JsonReader createReader(java.io.InputStream in)
        +
        Creates a JSON reader from a byte stream. The character encoding of + the stream is determined as described in + RFC 4627. + The reader is configured with the factory configuration.
        +
        Parameters:
        in - a byte stream from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        JsonReader createReader(java.io.InputStream in,
        +                      java.nio.charset.Charset charset)
        +
        Creates a JSON reader from a byte stream. The bytes of the stream + are decoded to characters using the specified charset. The reader is + configured with the factory configuration.
        +
        Parameters:
        in - a byte stream from which JSON is to be read
        charset - a charset
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        getConfigInUse

        +
        java.util.Map<java.lang.String,?> getConfigInUse()
        +
        Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON readers. + If there are any specified configuration properties that are not + supported by the provider, they won't be part of the returned map.
        +
        Returns:
        a map of supported provider specific properties that are used + to configure the readers. The map be empty but not null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonString.html b/.settings/javax/json/JsonString.html new file mode 100644 index 0000000..f4309d8 --- /dev/null +++ b/.settings/javax/json/JsonString.html @@ -0,0 +1,322 @@ + + + + + + +JsonString (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonString

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    JsonValue
    +
    +
    +
    +
    public interface JsonString
    +extends JsonValue
    +
    An immutable JSON string value.
    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) +
      Compares the specified object with this JsonString for equality.
      +
      java.lang.CharSequencegetChars() +
      Returns the char sequence for the JSON String value
      +
      java.lang.StringgetString() +
      Returns the JSON string value.
      +
      inthashCode() +
      Returns the hash code value for this JsonString object.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getString

        +
        java.lang.String getString()
        +
        Returns the JSON string value.
        +
        Returns:
        a JSON string value
        +
      • +
      + + + +
        +
      • +

        getChars

        +
        java.lang.CharSequence getChars()
        +
        Returns the char sequence for the JSON String value
        +
        Returns:
        a char sequence for the JSON String value
        +
      • +
      + + + +
        +
      • +

        equals

        +
        boolean equals(java.lang.Object obj)
        +
        Compares the specified object with this JsonString for equality. + Returns true if and only if the specified object is also a + JsonString, and their getString() objects are + equal.
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        Parameters:
        obj - the object to be compared for equality with this + JsonString
        +
        Returns:
        true if the specified object is equal to this + JsonString
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        int hashCode()
        +
        Returns the hash code value for this JsonString object. + The hash code of a JsonString object is defined to be its + getString() object's hash code.
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        Returns:
        the hash code value for this JsonString object
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonStructure.html b/.settings/javax/json/JsonStructure.html new file mode 100644 index 0000000..d0b6626 --- /dev/null +++ b/.settings/javax/json/JsonStructure.html @@ -0,0 +1,224 @@ + + + + + + +JsonStructure (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonStructure

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    JsonValue
    +
    +
    +
    All Known Subinterfaces:
    +
    JsonArray, JsonObject
    +
    +
    +
    +
    public interface JsonStructure
    +extends JsonValue
    +
    Super type for the two structured types in JSON (objects + and arrays).
    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+ +
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonValue.ValueType.html b/.settings/javax/json/JsonValue.ValueType.html new file mode 100644 index 0000000..f6fa0fb --- /dev/null +++ b/.settings/javax/json/JsonValue.ValueType.html @@ -0,0 +1,409 @@ + + + + + + +JsonValue.ValueType (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Enum JsonValue.ValueType

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      ARRAY +
      JSON array.
      +
      FALSE +
      JSON false.
      +
      NULL +
      JSON null.
      +
      NUMBER +
      JSON number.
      +
      OBJECT +
      JSON object.
      +
      STRING +
      JSON string.
      +
      TRUE +
      JSON true.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static JsonValue.ValueTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static JsonValue.ValueType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static JsonValue.ValueType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (JsonValue.ValueType c : JsonValue.ValueType.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in +the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static JsonValue.ValueType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant +with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonValue.html b/.settings/javax/json/JsonValue.html new file mode 100644 index 0000000..3b77480 --- /dev/null +++ b/.settings/javax/json/JsonValue.html @@ -0,0 +1,339 @@ + + + + + + +JsonValue (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonValue

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static class JsonValue.ValueType +
      Indicates the type of a JsonValue object.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static JsonValueFALSE +
      JSON false value
      +
      static JsonValueNULL +
      JSON null value.
      +
      static JsonValueTRUE +
      JSON true value.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonValue.ValueTypegetValueType() +
      Returns the value type of this JSON value.
      +
      java.lang.StringtoString() +
      Returns JSON text for this JSON value.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NULL

        +
        static final JsonValue NULL
        +
        JSON null value.
        +
      • +
      + + + +
        +
      • +

        TRUE

        +
        static final JsonValue TRUE
        +
        JSON true value.
        +
      • +
      + + + +
        +
      • +

        FALSE

        +
        static final JsonValue FALSE
        +
        JSON false value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getValueType

        +
        JsonValue.ValueType getValueType()
        +
        Returns the value type of this JSON value.
        +
        Returns:
        JSON value type
        +
      • +
      + + + +
        +
      • +

        toString

        +
        java.lang.String toString()
        +
        Returns JSON text for this JSON value.
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        JSON text
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonWriter.html b/.settings/javax/json/JsonWriter.html new file mode 100644 index 0000000..7fc0e0a --- /dev/null +++ b/.settings/javax/json/JsonWriter.html @@ -0,0 +1,334 @@ + + + + + + +JsonWriter (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonWriter

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes this JSON writer and frees any resources associated with the + writer.
      +
      voidwrite(JsonStructure value) +
      Writes the specified JSON object or + array to the output source.
      +
      voidwriteArray(JsonArray array) +
      Writes the specified JSON array to the output + source.
      +
      voidwriteObject(JsonObject object) +
      Writes the specified JSON object to the output + source.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        writeArray

        +
        void writeArray(JsonArray array)
        +
        Writes the specified JSON array to the output + source. This method needs to be called only once for a writer instance.
        +
        Parameters:
        array - JSON array that is to be written to the output source
        +
        Throws:
        +
        JsonException - if the specified JSON object cannot be + written due to i/o error (IOException would be cause of + JsonException)
        +
        java.lang.IllegalStateException - if writeArray, writeObject, write or close + method is already called
        +
      • +
      + + + +
        +
      • +

        writeObject

        +
        void writeObject(JsonObject object)
        +
        Writes the specified JSON object to the output + source. This method needs to be called only once for a writer instance.
        +
        Parameters:
        object - JSON object that is to be written to the output source
        +
        Throws:
        +
        JsonException - if the specified JSON object cannot be + written due to i/o error (IOException would be cause of JsonException)
        +
        java.lang.IllegalStateException - if writeArray, writeObject, write or close + method is already called
        +
      • +
      + + + +
        +
      • +

        write

        +
        void write(JsonStructure value)
        +
        Writes the specified JSON object or + array to the output source. This method needs + to be called only once for a writer instance.
        +
        Parameters:
        value - JSON array or object that is to be written to the output + source
        +
        Throws:
        +
        JsonException - if the specified JSON object cannot be + written due to i/o error (IOException would be cause of + JsonException)
        +
        java.lang.IllegalStateException - if writeArray, writeObject, write + or close method is already called
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +
        Closes this JSON writer and frees any resources associated with the + writer. This method closes the underlying output source.
        +
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException would be + cause of JsonException)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/JsonWriterFactory.html b/.settings/javax/json/JsonWriterFactory.html new file mode 100644 index 0000000..ae708a9 --- /dev/null +++ b/.settings/javax/json/JsonWriterFactory.html @@ -0,0 +1,308 @@ + + + + + + +JsonWriterFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json
+

Interface JsonWriterFactory

+
+
+
+
    +
  • +
    +
    +
    public interface JsonWriterFactory
    +
    Factory to create JsonWriter instances. If a factory + instance is configured with some configuration, that would be + used to configure the created writer instances. + +

    + JsonWriter can also be created using Json's + createWriter methods. If multiple writer instances are created, + then creating them using a writer factory is preferred. + +

    + For example: +

    + 
    + JsonWriterFactory factory = Json.createWriterFactory(...);
    + JsonWriter writer1 = factory.createWriter(...);
    + JsonWriter writer2 = factory.createWriter(...);
    + 
    + 
    + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonWritercreateWriter(java.io.OutputStream out) +
      Creates a JSON writer to write a JSON object or + array structure to the specified byte stream.
      +
      JsonWritercreateWriter(java.io.OutputStream out, + java.nio.charset.Charset charset) +
      Creates a JSON writer to write a JSON object or + array structure to the specified byte stream.
      +
      JsonWritercreateWriter(java.io.Writer writer) +
      Creates a JSON writer to write a JSON object or + array structure to the specified character stream.
      +
      java.util.Map<java.lang.String,?>getConfigInUse() +
      Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON writer objects.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createWriter

        +
        JsonWriter createWriter(java.io.Writer writer)
        +
        Creates a JSON writer to write a JSON object or + array structure to the specified character stream. + The writer is configured with the factory configuration.
        +
        Parameters:
        writer - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        JsonWriter createWriter(java.io.OutputStream out)
        +
        Creates a JSON writer to write a JSON object or + array structure to the specified byte stream. + Characters written to the stream are encoded into bytes using UTF-8 + encoding. The writer is configured with the factory configuration.
        +
        Parameters:
        out - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        JsonWriter createWriter(java.io.OutputStream out,
        +                      java.nio.charset.Charset charset)
        +
        Creates a JSON writer to write a JSON object or + array structure to the specified byte stream. + Characters written to the stream are encoded into bytes using the + specified charset. The writer is configured with the factory + configuration.
        +
        Parameters:
        out - to which JSON object or array is written
        charset - a charset
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        getConfigInUse

        +
        java.util.Map<java.lang.String,?> getConfigInUse()
        +
        Returns read-only map of supported provider specific configuration + properties that are used to configure the created JSON writer objects. + If there are any specified configuration properties that are not + supported by the provider, they won't be part of the returned map.
        +
        Returns:
        a map of supported provider specific properties that are used + to configure the created writers. The map may be empty but not null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/Json.html b/.settings/javax/json/class-use/Json.html new file mode 100644 index 0000000..8fdc0b9 --- /dev/null +++ b/.settings/javax/json/class-use/Json.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class javax.json.Json (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.Json

+
+
No usage of javax.json.Json
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonArray.html b/.settings/javax/json/class-use/JsonArray.html new file mode 100644 index 0000000..949fdf3 --- /dev/null +++ b/.settings/javax/json/class-use/JsonArray.html @@ -0,0 +1,223 @@ + + + + + + +Uses of Interface javax.json.JsonArray (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonArray

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonArrayBuilder.html b/.settings/javax/json/class-use/JsonArrayBuilder.html new file mode 100644 index 0000000..7353c1f --- /dev/null +++ b/.settings/javax/json/class-use/JsonArrayBuilder.html @@ -0,0 +1,285 @@ + + + + + + +Uses of Interface javax.json.JsonArrayBuilder (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonArrayBuilder

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonBuilderFactory.html b/.settings/javax/json/class-use/JsonBuilderFactory.html new file mode 100644 index 0000000..ef7ef35 --- /dev/null +++ b/.settings/javax/json/class-use/JsonBuilderFactory.html @@ -0,0 +1,190 @@ + + + + + + +Uses of Interface javax.json.JsonBuilderFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonBuilderFactory

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonException.html b/.settings/javax/json/class-use/JsonException.html new file mode 100644 index 0000000..6fbde6d --- /dev/null +++ b/.settings/javax/json/class-use/JsonException.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Class javax.json.JsonException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.JsonException

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonNumber.html b/.settings/javax/json/class-use/JsonNumber.html new file mode 100644 index 0000000..a31b030 --- /dev/null +++ b/.settings/javax/json/class-use/JsonNumber.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Interface javax.json.JsonNumber (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonNumber

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonObject.html b/.settings/javax/json/class-use/JsonObject.html new file mode 100644 index 0000000..01e82a7 --- /dev/null +++ b/.settings/javax/json/class-use/JsonObject.html @@ -0,0 +1,223 @@ + + + + + + +Uses of Interface javax.json.JsonObject (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonObject

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonObjectBuilder.html b/.settings/javax/json/class-use/JsonObjectBuilder.html new file mode 100644 index 0000000..bce8c05 --- /dev/null +++ b/.settings/javax/json/class-use/JsonObjectBuilder.html @@ -0,0 +1,305 @@ + + + + + + +Uses of Interface javax.json.JsonObjectBuilder (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonObjectBuilder

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Packages that use JsonObjectBuilder 
    PackageDescription
    javax.json +
    Provides an object model API to process JSON.
    +
    javax.json.spi +
    Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
    +
    +
  • +
  • +
      +
    • + + +

      Uses of JsonObjectBuilder in javax.json

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods in javax.json that return JsonObjectBuilder 
      Modifier and TypeMethod and Description
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + java.math.BigDecimal value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + java.math.BigInteger value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + boolean value) +
      Adds a name/JsonValue#TRUE or name/JsonValue#FALSE pair + to the JSON object associated with this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + double value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + int value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + JsonArrayBuilder builder) +
      Adds a name/JsonArray pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + JsonObjectBuilder builder) +
      Adds a name/JsonObject pair to the JSON object associated + with this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + JsonValue value) +
      Adds a name/JsonValue pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + long value) +
      Adds a name/JsonNumber pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + java.lang.String value) +
      Adds a name/JsonString pair to the JSON object associated with + this object builder.
      +
      JsonObjectBuilderJsonObjectBuilder.addNull(java.lang.String name) +
      Adds a name/JsonValue#NULL pair to the JSON object associated + with this object builder where the value is null.
      +
      static JsonObjectBuilderJson.createObjectBuilder() +
      Creates a JSON object builder
      +
      JsonObjectBuilderJsonBuilderFactory.createObjectBuilder() +
      Creates a JsonObjectBuilder instance that is used to build + JsonObject.
      +
      + + + + + + + + + + + + + + + + +
      Methods in javax.json with parameters of type JsonObjectBuilder 
      Modifier and TypeMethod and Description
      JsonArrayBuilderJsonArrayBuilder.add(JsonObjectBuilder builder) +
      Adds a JsonObject from an object builder to the array.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + JsonObjectBuilder builder) +
      Adds a name/JsonObject pair to the JSON object associated + with this object builder.
      +
      +
    • +
    • + + +

      Uses of JsonObjectBuilder in javax.json.spi

      + + + + + + + + + + + + +
      Methods in javax.json.spi that return JsonObjectBuilder 
      Modifier and TypeMethod and Description
      abstract JsonObjectBuilderJsonProvider.createObjectBuilder() +
      Creates a JSON object builder
      +
      +
    • +
    +
  • +
+
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonReader.html b/.settings/javax/json/class-use/JsonReader.html new file mode 100644 index 0000000..396c7ef --- /dev/null +++ b/.settings/javax/json/class-use/JsonReader.html @@ -0,0 +1,219 @@ + + + + + + +Uses of Interface javax.json.JsonReader (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonReader

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonReaderFactory.html b/.settings/javax/json/class-use/JsonReaderFactory.html new file mode 100644 index 0000000..7a4837e --- /dev/null +++ b/.settings/javax/json/class-use/JsonReaderFactory.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Interface javax.json.JsonReaderFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonReaderFactory

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonString.html b/.settings/javax/json/class-use/JsonString.html new file mode 100644 index 0000000..e081d90 --- /dev/null +++ b/.settings/javax/json/class-use/JsonString.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Interface javax.json.JsonString (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonString

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonStructure.html b/.settings/javax/json/class-use/JsonStructure.html new file mode 100644 index 0000000..89d5fcc --- /dev/null +++ b/.settings/javax/json/class-use/JsonStructure.html @@ -0,0 +1,201 @@ + + + + + + +Uses of Interface javax.json.JsonStructure (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonStructure

+
+
+
    +
  • + + + + + + + + + + + + +
    Packages that use JsonStructure 
    PackageDescription
    javax.json +
    Provides an object model API to process JSON.
    +
    +
  • +
  • +
      +
    • + + +

      Uses of JsonStructure in javax.json

      + + + + + + + + + + + + + + + + +
      Subinterfaces of JsonStructure in javax.json 
      Modifier and TypeInterface and Description
      interface JsonArray +
      JsonArray represents an immutable JSON array + (an ordered sequence of zero or more values).
      +
      interface JsonObject +
      JsonObject class represents an immutable JSON object value + (an unordered collection of zero or more name/value pairs).
      +
      + + + + + + + + + + + + +
      Methods in javax.json that return JsonStructure 
      Modifier and TypeMethod and Description
      JsonStructureJsonReader.read() +
      Returns a JSON array or object that is represented in + the input source.
      +
      + + + + + + + + + + + + +
      Methods in javax.json with parameters of type JsonStructure 
      Modifier and TypeMethod and Description
      voidJsonWriter.write(JsonStructure value) +
      Writes the specified JSON object or + array to the output source.
      +
      +
    • +
    +
  • +
+
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonValue.ValueType.html b/.settings/javax/json/class-use/JsonValue.ValueType.html new file mode 100644 index 0000000..2d088be --- /dev/null +++ b/.settings/javax/json/class-use/JsonValue.ValueType.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class javax.json.JsonValue.ValueType (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.JsonValue.ValueType

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonValue.html b/.settings/javax/json/class-use/JsonValue.html new file mode 100644 index 0000000..ab0bfa1 --- /dev/null +++ b/.settings/javax/json/class-use/JsonValue.html @@ -0,0 +1,288 @@ + + + + + + +Uses of Interface javax.json.JsonValue (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonValue

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Packages that use JsonValue 
    PackageDescription
    javax.json +
    Provides an object model API to process JSON.
    +
    javax.json.stream +
    Provides a streaming API to parse and generate + JSON.
    +
    +
  • +
  • +
      +
    • + + +

      Uses of JsonValue in javax.json

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Subinterfaces of JsonValue in javax.json 
      Modifier and TypeInterface and Description
      interface JsonArray +
      JsonArray represents an immutable JSON array + (an ordered sequence of zero or more values).
      +
      interface JsonNumber +
      An immutable JSON number value.
      +
      interface JsonObject +
      JsonObject class represents an immutable JSON object value + (an unordered collection of zero or more name/value pairs).
      +
      interface JsonString +
      An immutable JSON string value.
      +
      interface JsonStructure +
      Super type for the two structured types in JSON (objects + and arrays).
      +
      + + + + + + + + + + + + + + + + + + + + +
      Fields in javax.json declared as JsonValue 
      Modifier and TypeField and Description
      static JsonValueJsonValue.FALSE +
      JSON false value
      +
      static JsonValueJsonValue.NULL +
      JSON null value.
      +
      static JsonValueJsonValue.TRUE +
      JSON true value.
      +
      + + + + + + + + + + + + +
      Methods in javax.json with type parameters of type JsonValue 
      Modifier and TypeMethod and Description
      <T extends JsonValue
      java.util.List<T>
      JsonArray.getValuesAs(java.lang.Class<T> clazz) +
      Returns a list a view of the specified type for the array.
      +
      + + + + + + + + + + + + + + + + +
      Methods in javax.json with parameters of type JsonValue 
      Modifier and TypeMethod and Description
      JsonArrayBuilderJsonArrayBuilder.add(JsonValue value) +
      Adds a value to the array.
      +
      JsonObjectBuilderJsonObjectBuilder.add(java.lang.String name, + JsonValue value) +
      Adds a name/JsonValue pair to the JSON object associated with + this object builder.
      +
      +
    • +
    • + + +

      Uses of JsonValue in javax.json.stream

      + + + + + + + + + + + + + + + + +
      Methods in javax.json.stream with parameters of type JsonValue 
      Modifier and TypeMethod and Description
      JsonGeneratorJsonGenerator.write(JsonValue value) +
      Writes the specified value as a JSON value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + JsonValue value) +
      Writes a JSON name/value pair in the current object context.
      +
      +
    • +
    +
  • +
+
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonWriter.html b/.settings/javax/json/class-use/JsonWriter.html new file mode 100644 index 0000000..f92abdf --- /dev/null +++ b/.settings/javax/json/class-use/JsonWriter.html @@ -0,0 +1,230 @@ + + + + + + +Uses of Interface javax.json.JsonWriter (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonWriter

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Packages that use JsonWriter 
    PackageDescription
    javax.json +
    Provides an object model API to process JSON.
    +
    javax.json.spi +
    Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
    +
    +
  • +
  • + +
  • +
+
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/class-use/JsonWriterFactory.html b/.settings/javax/json/class-use/JsonWriterFactory.html new file mode 100644 index 0000000..cebbdb0 --- /dev/null +++ b/.settings/javax/json/class-use/JsonWriterFactory.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Interface javax.json.JsonWriterFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.JsonWriterFactory

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/package-frame.html b/.settings/javax/json/package-frame.html new file mode 100644 index 0000000..c13d5b7 --- /dev/null +++ b/.settings/javax/json/package-frame.html @@ -0,0 +1,44 @@ + + + + + + +javax.json (JSR 353 (JSON Processing) API 1.0 API) + + + + +

javax.json

+ + + diff --git a/.settings/javax/json/package-summary.html b/.settings/javax/json/package-summary.html new file mode 100644 index 0000000..2b29587 --- /dev/null +++ b/.settings/javax/json/package-summary.html @@ -0,0 +1,298 @@ + + + + + + +javax.json (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package javax.json

+
+
Provides an object model API to process JSON.
+
+

See: Description

+
+
+ + + + +

Package javax.json Description

+
Provides an object model API to process JSON. + +

The object model API is a high-level API that provides immutable object + models for JSON object and array structures. These JSON structures are + represented as object models using the Java types JsonObject + and JsonArray. The interface javax.json.JsonObject provides + a Map view to access the unordered collection of zero or + more name/value pairs from the model. Similarly, the interface + JsonArray provides a List view to access the + ordered sequence of zero or more values from the model. + +

The object model API uses builder patterns to create these object models. + The classes JsonObjectBuilder and + JsonArrayBuilder provide methods to create models + of type JsonObject and JsonArray respectively. + +

These object models can also be created from an input source using + the class JsonReader. Similarly, these object models + can be written to an output source using the class JsonWriter.

+
Since:
+
JSON Processing 1.0
+
Author:
+
Jitendra Kotamraju
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/package-tree.html b/.settings/javax/json/package-tree.html new file mode 100644 index 0000000..15b7b8b --- /dev/null +++ b/.settings/javax/json/package-tree.html @@ -0,0 +1,203 @@ + + + + + + +javax.json Class Hierarchy (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package javax.json

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • javax.json.Json
    • +
    • java.lang.Throwable (implements java.io.Serializable) +
        +
      • java.lang.Exception + +
      • +
      +
    • +
    +
  • +
+

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/package-use.html b/.settings/javax/json/package-use.html new file mode 100644 index 0000000..7ace88f --- /dev/null +++ b/.settings/javax/json/package-use.html @@ -0,0 +1,324 @@ + + + + + + +Uses of Package javax.json (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Package
javax.json

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/spi/JsonProvider.html b/.settings/javax/json/spi/JsonProvider.html new file mode 100644 index 0000000..1fe2a10 --- /dev/null +++ b/.settings/javax/json/spi/JsonProvider.html @@ -0,0 +1,581 @@ + + + + + + +JsonProvider (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.spi
+

Class JsonProvider

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • javax.json.spi.JsonProvider
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public abstract class JsonProvider
    +extends java.lang.Object
    +
    Service provider for JSON processing objects. + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
    See Also:
    ServiceLoader
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonProvider

        +
        protected JsonProvider()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        provider

        +
        public static JsonProvider provider()
        +
        Creates a JSON provider object. The provider is loaded using the + ServiceLoader.load(Class) method. If there are no available + service providers, this method returns the default service provider.
        +
        Returns:
        a JSON provider
        See Also:
        ServiceLoader
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        public abstract JsonParser createParser(java.io.Reader reader)
        +
        Creates a JSON parser from a character stream.
        +
        Parameters:
        reader - i/o reader from which JSON is to be read
        +
        Returns:
        a JSON parser
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        public abstract JsonParser createParser(java.io.InputStream in)
        +
        Creates a JSON parser from the specified byte stream. + The character encoding of the stream is determined + as defined in RFC 4627 + .
        +
        Parameters:
        in - i/o stream from which JSON is to be read
        +
        Returns:
        a JSON parser
        +
        Throws:
        +
        JsonException - if encoding cannot be determined + or i/o error (IOException would be cause of JsonException)
        +
      • +
      + + + +
        +
      • +

        createParserFactory

        +
        public abstract JsonParserFactory createParserFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a parser factory for creating JsonParser instances. + The factory is configured with the specified map of + provider specific configuration properties. Provider implementations + should ignore any unsupported configuration properties specified in + the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON parsers. The map may be empty or null
        +
        Returns:
        a JSON parser factory
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        public abstract JsonGenerator createGenerator(java.io.Writer writer)
        +
        Creates a JSON generator for writing JSON text to a character stream.
        +
        Parameters:
        writer - a i/o writer to which JSON is written
        +
        Returns:
        a JSON generator
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        public abstract JsonGenerator createGenerator(java.io.OutputStream out)
        +
        Creates a JSON generator for writing JSON text to a byte stream.
        +
        Parameters:
        out - i/o stream to which JSON is written
        +
        Returns:
        a JSON generator
        +
      • +
      + + + +
        +
      • +

        createGeneratorFactory

        +
        public abstract JsonGeneratorFactory createGeneratorFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a generator factory for creating JsonGenerator instances. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should + ignore any unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON generators. The map may be empty or null
        +
        Returns:
        a JSON generator factory
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        public abstract JsonReader createReader(java.io.Reader reader)
        +
        Creates a JSON reader from a character stream.
        +
        Parameters:
        reader - a reader from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createReader

        +
        public abstract JsonReader createReader(java.io.InputStream in)
        +
        Creates a JSON reader from a byte stream. The character encoding of + the stream is determined as described in + RFC 4627.
        +
        Parameters:
        in - a byte stream from which JSON is to be read
        +
        Returns:
        a JSON reader
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        public abstract JsonWriter createWriter(java.io.Writer writer)
        +
        Creates a JSON writer to write a + JSON object or array + structure to the specified character stream.
        +
        Parameters:
        writer - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createWriter

        +
        public abstract JsonWriter createWriter(java.io.OutputStream out)
        +
        Creates a JSON writer to write a + JSON object or array + structure to the specified byte stream. Characters written to + the stream are encoded into bytes using UTF-8 encoding.
        +
        Parameters:
        out - to which JSON object or array is written
        +
        Returns:
        a JSON writer
        +
      • +
      + + + +
        +
      • +

        createWriterFactory

        +
        public abstract JsonWriterFactory createWriterFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a writer factory for creating JsonWriter objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON writers. The map may be empty or null
        +
        Returns:
        a JSON writer factory
        +
      • +
      + + + +
        +
      • +

        createReaderFactory

        +
        public abstract JsonReaderFactory createReaderFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a reader factory for creating JsonReader objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON readers. The map may be empty or null
        +
        Returns:
        a JSON reader factory
        +
      • +
      + + + +
        +
      • +

        createObjectBuilder

        +
        public abstract JsonObjectBuilder createObjectBuilder()
        +
        Creates a JSON object builder
        +
        Returns:
        a JSON object builder
        +
      • +
      + + + +
        +
      • +

        createArrayBuilder

        +
        public abstract JsonArrayBuilder createArrayBuilder()
        +
        Creates a JSON array builder
        +
        Returns:
        a JSON array builder
        +
      • +
      + + + +
        +
      • +

        createBuilderFactory

        +
        public abstract JsonBuilderFactory createBuilderFactory(java.util.Map<java.lang.String,?> config)
        +
        Creates a builder factory for creating JsonArrayBuilder + and JsonObjectBuilder objects. + The factory is configured with the specified map of provider specific + configuration properties. Provider implementations should ignore any + unsupported configuration properties specified in the map.
        +
        Parameters:
        config - a map of provider specific properties to configure the + JSON builders. The map may be empty or null
        +
        Returns:
        a JSON builder factory
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/spi/class-use/JsonProvider.html b/.settings/javax/json/spi/class-use/JsonProvider.html new file mode 100644 index 0000000..d258240 --- /dev/null +++ b/.settings/javax/json/spi/class-use/JsonProvider.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class javax.json.spi.JsonProvider (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.spi.JsonProvider

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/spi/package-frame.html b/.settings/javax/json/spi/package-frame.html new file mode 100644 index 0000000..27c3037 --- /dev/null +++ b/.settings/javax/json/spi/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +javax.json.spi (JSR 353 (JSON Processing) API 1.0 API) + + + + +

javax.json.spi

+
+

Classes

+ +
+ + diff --git a/.settings/javax/json/spi/package-summary.html b/.settings/javax/json/spi/package-summary.html new file mode 100644 index 0000000..cf82fd1 --- /dev/null +++ b/.settings/javax/json/spi/package-summary.html @@ -0,0 +1,161 @@ + + + + + + +javax.json.spi (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package javax.json.spi

+
+
Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    JsonProvider +
    Service provider for JSON processing objects.
    +
    +
  • +
+ + + +

Package javax.json.spi Description

+
Service Provider Interface (SPI) to plug in implementations for + JSON processing objects. + +

JsonProvider is an abstract class + that provides a service for creating JSON processing instances. + A service provider for JsonProvider provides an + specific implementation by subclassing and implementing the methods in + JsonProvider. This enables using custom, efficient JSON processing + implementations (for e.g. parser and generator) other than the default ones. + +

The API locates and loads providers using ServiceLoader.

+
Since:
+
JSON Processing 1.0
+
Author:
+
Jitendra Kotamraju
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/spi/package-tree.html b/.settings/javax/json/spi/package-tree.html new file mode 100644 index 0000000..e158714 --- /dev/null +++ b/.settings/javax/json/spi/package-tree.html @@ -0,0 +1,130 @@ + + + + + + +javax.json.spi Class Hierarchy (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package javax.json.spi

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/spi/package-use.html b/.settings/javax/json/spi/package-use.html new file mode 100644 index 0000000..758c227 --- /dev/null +++ b/.settings/javax/json/spi/package-use.html @@ -0,0 +1,155 @@ + + + + + + +Uses of Package javax.json.spi (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Package
javax.json.spi

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonGenerationException.html b/.settings/javax/json/stream/JsonGenerationException.html new file mode 100644 index 0000000..2dc8996 --- /dev/null +++ b/.settings/javax/json/stream/JsonGenerationException.html @@ -0,0 +1,299 @@ + + + + + + +JsonGenerationException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Class JsonGenerationException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • + +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class JsonGenerationException
    +extends JsonException
    +
    JsonGenerationException indicates an incorrect JSON is + being generated.
    +
    Author:
    +
    Jitendra Kotamraju
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonGenerationException(java.lang.String message) +
      Constructs a new runtime exception with the specified detail message.
      +
      JsonGenerationException(java.lang.String message, + java.lang.Throwable cause) +
      Constructs a new runtime exception with the specified detail message and + cause.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonGenerationException

        +
        public JsonGenerationException(java.lang.String message)
        +
        Constructs a new runtime exception with the specified detail message. + The cause is not initialized, and may subsequently be initialized by a + call to Throwable.initCause(java.lang.Throwable).
        +
        Parameters:
        message - the detail message. The detail message is saved for + later retrieval by the Throwable.getMessage() method.
        +
      • +
      + + + +
        +
      • +

        JsonGenerationException

        +
        public JsonGenerationException(java.lang.String message,
        +                       java.lang.Throwable cause)
        +
        Constructs a new runtime exception with the specified detail message and + cause.

        Note that the detail message associated with + cause is not automatically incorporated in + this runtime exception's detail message.

        +
        Parameters:
        message - the detail message (which is saved for later retrieval + by the Throwable.getMessage() method).
        cause - the cause (which is saved for later retrieval by the + Throwable.getCause() method). (A null value is + permitted, and indicates that the cause is nonexistent or + unknown.)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonGenerator.html b/.settings/javax/json/stream/JsonGenerator.html new file mode 100644 index 0000000..cb83d21 --- /dev/null +++ b/.settings/javax/json/stream/JsonGenerator.html @@ -0,0 +1,1014 @@ + + + + + + +JsonGenerator (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Interface JsonGenerator

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringPRETTY_PRINTING +
      Configuration property to generate JSON prettily.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes this generator and frees any resources associated with it.
      +
      voidflush() +
      Flushes the underlying output source.
      +
      JsonGeneratorwrite(java.math.BigDecimal value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorwrite(java.math.BigInteger value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorwrite(boolean value) +
      Writes a JSON true or false value within the current array context.
      +
      JsonGeneratorwrite(double value) +
      Writes the specified value as a JSON number value within the current + array context.
      +
      JsonGeneratorwrite(int value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorwrite(JsonValue value) +
      Writes the specified value as a JSON value within + the current array context.
      +
      JsonGeneratorwrite(long value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorwrite(java.lang.String value) +
      Writes the specified value as a JSON string value within + the current array context.
      +
      JsonGeneratorwrite(java.lang.String name, + java.math.BigDecimal value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + java.math.BigInteger value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + boolean value) +
      Writes a JSON name/boolean value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + double value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + int value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + JsonValue value) +
      Writes a JSON name/value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + long value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorwrite(java.lang.String name, + java.lang.String value) +
      Writes a JSON name/string value pair in the current object context.
      +
      JsonGeneratorwriteEnd() +
      Writes the end of the current context.
      +
      JsonGeneratorwriteNull() +
      Writes a JSON null value within the current array context.
      +
      JsonGeneratorwriteNull(java.lang.String name) +
      Writes a JSON name/null value pair in an current object context.
      +
      JsonGeneratorwriteStartArray() +
      Writes the JSON start array character.
      +
      JsonGeneratorwriteStartArray(java.lang.String name) +
      Writes the JSON name/start array character pair with in the current + object context.
      +
      JsonGeneratorwriteStartObject() +
      Writes the JSON start object character.
      +
      JsonGeneratorwriteStartObject(java.lang.String name) +
      Writes the JSON name/start object character pair in the current + object context.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        PRETTY_PRINTING

        +
        static final java.lang.String PRETTY_PRINTING
        +
        Configuration property to generate JSON prettily. All providers + must support this property. The value of the property could be + be anything.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        writeStartObject

        +
        JsonGenerator writeStartObject()
        +
        Writes the JSON start object character. It starts a new child object + context within which JSON name/value pairs can be written to the object. + This method is valid only in an array context or in no context (when a + context is not yet started). This method can only be called once in + no context.
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is called within an + object context or if it is called more than once in no context.
        +
      • +
      + + + +
        +
      • +

        writeStartObject

        +
        JsonGenerator writeStartObject(java.lang.String name)
        +
        Writes the JSON name/start object character pair in the current + object context. It starts a new child object context within which JSON + name/value pairs can be written to the object.
        +
        Parameters:
        name - a name within the JSON name/object pair to be written
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context
        +
      • +
      + + + +
        +
      • +

        writeStartArray

        +
        JsonGenerator writeStartArray()
        +
        Writes the JSON start array character. It starts a new child array + context within which JSON values can be written to the array. This + method is valid only in an array context or in no context (when a + context is not yet started). This method can only be called once in + no context.
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is called within an + object context or if called more than once in no context
        +
      • +
      + + + +
        +
      • +

        writeStartArray

        +
        JsonGenerator writeStartArray(java.lang.String name)
        +
        Writes the JSON name/start array character pair with in the current + object context. It starts a new child array context within which JSON + values can be written to the array.
        +
        Parameters:
        name - a name within the JSON name/array pair to be written
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within + an object context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  JsonValue value)
        +
        Writes a JSON name/value pair in the current object context.
        +
        Parameters:
        name - a name in the JSON name/value pair to be written in + current JSON object
        value - a value in the JSON name/value pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  java.lang.String value)
        +
        Writes a JSON name/string value pair in the current object context. + The specified value is written as JSON string value.
        +
        Parameters:
        name - a name in the JSON name/string pair to be written in + current JSON object
        value - a value in the JSON name/string pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  java.math.BigInteger value)
        +
        Writes a JSON name/number value pair in the current object context. + The specified value is written as a JSON number value. The string + new BigDecimal(value).toString() + is used as the text value for writing.
        +
        Parameters:
        name - a name in the JSON name/number pair to be written in + current JSON object
        value - a value in the JSON name/number pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  java.math.BigDecimal value)
        +
        Writes a JSON name/number value pair in the current object context. + The specified value is written as a JSON number value. The specified + value's toString() is used as the text value for writing.
        +
        Parameters:
        name - a name in the JSON name/number pair to be written in + current JSON object
        value - a value in the JSON name/number pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  int value)
        +
        Writes a JSON name/number value pair in the current object context. + The specified value is written as a JSON number value. The string + new BigDecimal(value).toString() is used as the text value + for writing.
        +
        Parameters:
        name - a name in the JSON name/number pair to be written in + current JSON object
        value - a value in the JSON name/number pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  long value)
        +
        Writes a JSON name/number value pair in the current object context. + The specified value is written as a JSON number value. The string + new BigDecimal(value).toString() is used as the text + value for writing.
        +
        Parameters:
        name - a name in the JSON name/number pair to be written in + current JSON object
        value - a value in the JSON name/number pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  double value)
        +
        Writes a JSON name/number value pair in the current object context. + The specified value is written as a JSON number value. The string + BigDecimal.valueOf(double).toString() + is used as the text value for writing.
        +
        Parameters:
        name - a name in the JSON name/number pair to be written in + current JSON object
        value - a value in the JSON name/number pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        java.lang.NumberFormatException - if the value is Not-a-Number(NaN) or infinity.
        +
        JsonGenerationException - if this method is not called within an + object context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String name,
        +                  boolean value)
        +
        Writes a JSON name/boolean value pair in the current object context. + If value is true, it writes the JSON true value, otherwise + it writes the JSON false value.
        +
        Parameters:
        name - a name in the JSON name/boolean pair to be written in + current JSON object
        value - a value in the JSON name/boolean pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context.
        +
      • +
      + + + +
        +
      • +

        writeNull

        +
        JsonGenerator writeNull(java.lang.String name)
        +
        Writes a JSON name/null value pair in an current object context.
        +
        Parameters:
        name - a name in the JSON name/null pair to be written in + current JSON object
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + object context
        +
      • +
      + + + +
        +
      • +

        writeEnd

        +
        JsonGenerator writeEnd()
        +
        Writes the end of the current context. If the current context is + an array context, this method writes the end-of-array character (']'). + If the current context is an object context, this method writes the + end-of-object character ('}'). After writing the end of the current + context, the parent context becomes the new current context.
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is called in no context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(JsonValue value)
        +
        Writes the specified value as a JSON value within + the current array context.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.lang.String value)
        +
        Writes the specified value as a JSON string value within + the current array context.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.math.BigDecimal value)
        +
        Writes the specified value as a JSON number value within + the current array context. The specified value's toString() + is used as the the text value for writing.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(java.math.BigInteger value)
        +
        Writes the specified value as a JSON number value within + the current array context. The string new BigDecimal(value).toString() + is used as the text value for writing.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator.
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        See Also:
        JsonNumber
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(int value)
        +
        Writes the specified value as a JSON number value within + the current array context. The string new BigDecimal(value).toString() + is used as the text value for writing.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(long value)
        +
        Writes the specified value as a JSON number value within + the current array context. The string new BigDecimal(value).toString() + is used as the text value for writing.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(double value)
        +
        Writes the specified value as a JSON number value within the current + array context. The string BigDecimal.valueOf(value).toString() + is used as the text value for writing.
        +
        Parameters:
        value - a value to be written in current JSON array
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        +
        java.lang.NumberFormatException - if the value is Not-a-Number(NaN) or infinity.
        +
      • +
      + + + +
        +
      • +

        write

        +
        JsonGenerator write(boolean value)
        +
        Writes a JSON true or false value within the current array context. + If value is true, this method writes the JSON true value, + otherwise it writes the JSON false value.
        +
        Parameters:
        value - a boolean value
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context.
        +
      • +
      + + + +
        +
      • +

        writeNull

        +
        JsonGenerator writeNull()
        +
        Writes a JSON null value within the current array context.
        +
        Returns:
        this generator
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if this method is not called within an + array context
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +
        Closes this generator and frees any resources associated with it. + This method closes the underlying output source.
        +
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonGenerationException - if an incomplete JSON is generated
        +
      • +
      + + + +
        +
      • +

        flush

        +
        void flush()
        +
        Flushes the underlying output source. If the generator has saved + any characters in a buffer, writes them immediately to the underlying + output source before flushing it.
        +
        +
        Specified by:
        +
        flush in interface java.io.Flushable
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonGeneratorFactory.html b/.settings/javax/json/stream/JsonGeneratorFactory.html new file mode 100644 index 0000000..8b87561 --- /dev/null +++ b/.settings/javax/json/stream/JsonGeneratorFactory.html @@ -0,0 +1,297 @@ + + + + + + +JsonGeneratorFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Interface JsonGeneratorFactory

+
+
+
+
    +
  • +
    +
    +
    public interface JsonGeneratorFactory
    +
    Factory to create JsonGenerator instances. If a factory + instance is configured with some configuration, the configuration applies + to all generator instances created using that factory instance. + +

    + The class Json also provides methods to create + JsonGenerator instances, but using JsonGeneratorFactory is + preferred when creating multiple generator instances as shown in the + following example: + +

    + 
    + JsonGeneratorFactory factory = Json.createGeneratorFactory();
    + JsonGenerator generator1 = factory.createGenerator(...);
    + JsonGenerator generator2 = factory.createGenerator(...);
    + 
    + 
    + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonGeneratorcreateGenerator(java.io.OutputStream out) +
      Creates a JSON generator to write JSON text to a byte stream.
      +
      JsonGeneratorcreateGenerator(java.io.OutputStream out, + java.nio.charset.Charset charset) +
      Creates a JSON generator to write JSON text to a byte stream.
      +
      JsonGeneratorcreateGenerator(java.io.Writer writer) +
      Creates a JSON generator to write JSON text to a character stream.
      +
      java.util.Map<java.lang.String,?>getConfigInUse() +
      Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON generators.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createGenerator

        +
        JsonGenerator createGenerator(java.io.Writer writer)
        +
        Creates a JSON generator to write JSON text to a character stream. + The generator is configured with the factory configuration.
        +
        Parameters:
        writer - i/o writer to which JSON is written
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        JsonGenerator createGenerator(java.io.OutputStream out)
        +
        Creates a JSON generator to write JSON text to a byte stream. Characters + written to the stream are encoded into bytes using UTF-8 encoding. + The generator is configured with the factory's configuration.
        +
        Parameters:
        out - i/o stream to which JSON is written
        +
      • +
      + + + +
        +
      • +

        createGenerator

        +
        JsonGenerator createGenerator(java.io.OutputStream out,
        +                            java.nio.charset.Charset charset)
        +
        Creates a JSON generator to write JSON text to a byte stream. Characters + written to the stream are encoded into bytes using the specified charset. + The generator is configured with the factory's configuration.
        +
        Parameters:
        out - i/o stream to which JSON is written
        charset - a charset
        +
      • +
      + + + +
        +
      • +

        getConfigInUse

        +
        java.util.Map<java.lang.String,?> getConfigInUse()
        +
        Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON generators. + If there are any specified configuration properties that are not + supported by the provider, they won't be part of the returned map.
        +
        Returns:
        a map of supported provider specific properties that are used + to configure the created generators. The map may be empty but not null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonLocation.html b/.settings/javax/json/stream/JsonLocation.html new file mode 100644 index 0000000..0054558 --- /dev/null +++ b/.settings/javax/json/stream/JsonLocation.html @@ -0,0 +1,266 @@ + + + + + + +JsonLocation (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Interface JsonLocation

+
+
+
+
    +
  • +
    +
    +
    public interface JsonLocation
    +
    Provides the location information of a JSON event in an input source. The + JsonLocation information can be used to identify incorrect JSON + or can be used by higher frameworks to know about the processing location. + +

    All the information provided by a JsonLocation is optional. For + example, a provider may only report line numbers. Also, there may not be any + location information for an input source. For example, if a + JsonParser is created using + JsonArray input source, all the methods in + this class return -1.

    +
    Author:
    +
    Jitendra Kotamraju
    +
    See Also:
    JsonParser, +JsonParsingException
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      longgetColumnNumber() +
      Return the column number for the current JSON event in the input source.
      +
      longgetLineNumber() +
      Return the line number for the current JSON event in the input source.
      +
      longgetStreamOffset() +
      Return the stream offset into the input source this location + is pointing to.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLineNumber

        +
        long getLineNumber()
        +
        Return the line number for the current JSON event in the input source.
        +
        Returns:
        the line number or -1 if none is available
        +
      • +
      + + + +
        +
      • +

        getColumnNumber

        +
        long getColumnNumber()
        +
        Return the column number for the current JSON event in the input source.
        +
        Returns:
        the column number or -1 if none is available
        +
      • +
      + + + +
        +
      • +

        getStreamOffset

        +
        long getStreamOffset()
        +
        Return the stream offset into the input source this location + is pointing to. If the input source is a file or a byte stream then + this is the byte offset into that stream, but if the input source is + a character media then the offset is the character offset. + Returns -1 if there is no offset available.
        +
        Returns:
        the offset of input source stream, or -1 if there is + no offset available
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonParser.Event.html b/.settings/javax/json/stream/JsonParser.Event.html new file mode 100644 index 0000000..f697b32 --- /dev/null +++ b/.settings/javax/json/stream/JsonParser.Event.html @@ -0,0 +1,464 @@ + + + + + + +JsonParser.Event (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Enum JsonParser.Event

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<JsonParser.Event>
    • +
    • +
        +
      • javax.json.stream.JsonParser.Event
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<JsonParser.Event>
    +
    +
    +
    Enclosing interface:
    +
    JsonParser
    +
    +
    +
    +
    public static enum JsonParser.Event
    +extends java.lang.Enum<JsonParser.Event>
    +
    An event from JsonParser.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      END_ARRAY +
      End of a JSON array.
      +
      END_OBJECT +
      End of a JSON object.
      +
      KEY_NAME +
      Name in a name/value pair of a JSON object.
      +
      START_ARRAY +
      Start of a JSON array.
      +
      START_OBJECT +
      Start of a JSON object.
      +
      VALUE_FALSE +
      false value in a JSON array or object.
      +
      VALUE_NULL +
      null value in a JSON array or object.
      +
      VALUE_NUMBER +
      Number value in a JSON array or object.
      +
      VALUE_STRING +
      String value in a JSON array or object.
      +
      VALUE_TRUE +
      true value in a JSON array or object.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static JsonParser.EventvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static JsonParser.Event[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        START_ARRAY

        +
        public static final JsonParser.Event START_ARRAY
        +
        Start of a JSON array. The position of the parser is after '['.
        +
      • +
      + + + +
        +
      • +

        START_OBJECT

        +
        public static final JsonParser.Event START_OBJECT
        +
        Start of a JSON object. The position of the parser is after '{'.
        +
      • +
      + + + +
        +
      • +

        KEY_NAME

        +
        public static final JsonParser.Event KEY_NAME
        +
        Name in a name/value pair of a JSON object. The position of the parser + is after the key name. The method JsonParser.getString() returns the key + name.
        +
      • +
      + + + +
        +
      • +

        VALUE_STRING

        +
        public static final JsonParser.Event VALUE_STRING
        +
        String value in a JSON array or object. The position of the parser is + after the string value. The method JsonParser.getString() + returns the string value.
        +
      • +
      + + + + + + + +
        +
      • +

        VALUE_TRUE

        +
        public static final JsonParser.Event VALUE_TRUE
        +
        true value in a JSON array or object. The position of the + parser is after the true value.
        +
      • +
      + + + +
        +
      • +

        VALUE_FALSE

        +
        public static final JsonParser.Event VALUE_FALSE
        +
        false value in a JSON array or object. The position of the + parser is after the false value.
        +
      • +
      + + + +
        +
      • +

        VALUE_NULL

        +
        public static final JsonParser.Event VALUE_NULL
        +
        null value in a JSON array or object. The position of the + parser is after the null value.
        +
      • +
      + + + +
        +
      • +

        END_OBJECT

        +
        public static final JsonParser.Event END_OBJECT
        +
        End of a JSON object. The position of the parser is after '}'.
        +
      • +
      + + + +
        +
      • +

        END_ARRAY

        +
        public static final JsonParser.Event END_ARRAY
        +
        End of a JSON array. The position of the parser is after ']'.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static JsonParser.Event[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (JsonParser.Event c : JsonParser.Event.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in +the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static JsonParser.Event valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant +with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonParser.html b/.settings/javax/json/stream/JsonParser.html new file mode 100644 index 0000000..94b7e7b --- /dev/null +++ b/.settings/javax/json/stream/JsonParser.html @@ -0,0 +1,548 @@ + + + + + + +JsonParser (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Interface JsonParser

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static class JsonParser.Event +
      An event from JsonParser.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes this parser and frees any resources associated with the + parser.
      +
      java.math.BigDecimalgetBigDecimal() +
      Returns a JSON number as a BigDecimal.
      +
      intgetInt() +
      Returns a JSON number as an integer.
      +
      JsonLocationgetLocation() +
      Return the location that corresponds to the parser's current state in + the JSON input source.
      +
      longgetLong() +
      Returns a JSON number as a long.
      +
      java.lang.StringgetString() +
      Returns a String for the name in a name/value pair, + for a string value or a number value.
      +
      booleanhasNext() +
      Returns true if there are more parsing states.
      +
      booleanisIntegralNumber() +
      Returns true if the JSON number at the current parser state is a + integral number.
      +
      JsonParser.Eventnext() +
      Returns the event for the next parsing state.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        hasNext

        +
        boolean hasNext()
        +
        Returns true if there are more parsing states. This method returns + false if the parser reaches the end of the JSON text.
        +
        Returns:
        true if there are more parsing states.
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonParsingException - if the parser encounters invalid JSON + when advancing to next state.
        +
      • +
      + + + +
        +
      • +

        next

        +
        JsonParser.Event next()
        +
        Returns the event for the next parsing state.
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
        JsonParsingException - if the parser encounters invalid JSON + when advancing to next state.
        +
        java.util.NoSuchElementException - if there are no more parsing + states.
        +
      • +
      + + + + + + + +
        +
      • +

        isIntegralNumber

        +
        boolean isIntegralNumber()
        +
        Returns true if the JSON number at the current parser state is a + integral number. A BigDecimal may be used to store the value + internally and this method semantics are defined using its + scale(). If the scale is zero, then it is considered integral + type. This integral type information can be used to invoke an + appropriate accessor method to obtain a numeric value as in the + following example: + +
        + 
        + JsonParser parser = ...
        + if (parser.isIntegralNumber()) {
        +     parser.getInt();     // or other methods to get integral value
        + } else {
        +     parser.getBigDecimal();
        + }
        + 
        + 
        +
        Returns:
        true if this number is a integral number, otherwise false
        +
        Throws:
        +
        java.lang.IllegalStateException - when the parser state is not + VALUE_NUMBER
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        int getInt()
        +
        Returns a JSON number as an integer. The returned value is equal + to new BigDecimal(getString()).intValue(). Note that + this conversion can lose information about the overall magnitude + and precision of the number value as well as return a result with + the opposite sign. This method should only be called when the parser + state is JsonParser.Event.VALUE_NUMBER.
        +
        Returns:
        an integer for a JSON number
        +
        Throws:
        +
        java.lang.IllegalStateException - when the parser state is not + VALUE_NUMBER
        See Also:
        BigDecimal.intValue()
        +
      • +
      + + + +
        +
      • +

        getLong

        +
        long getLong()
        +
        Returns a JSON number as a long. The returned value is equal + to new BigDecimal(getString()).longValue(). Note that this + conversion can lose information about the overall magnitude and + precision of the number value as well as return a result with + the opposite sign. This method is only called when the parser state is + JsonParser.Event.VALUE_NUMBER.
        +
        Returns:
        a long for a JSON number
        +
        Throws:
        +
        java.lang.IllegalStateException - when the parser state is not + VALUE_NUMBER
        See Also:
        BigDecimal.longValue()
        +
      • +
      + + + +
        +
      • +

        getBigDecimal

        +
        java.math.BigDecimal getBigDecimal()
        +
        Returns a JSON number as a BigDecimal. The BigDecimal + is created using new BigDecimal(getString()). This + method should only called when the parser state is + JsonParser.Event.VALUE_NUMBER.
        +
        Returns:
        a BigDecimal for a JSON number
        +
        Throws:
        +
        java.lang.IllegalStateException - when the parser state is not + VALUE_NUMBER
        +
      • +
      + + + +
        +
      • +

        getLocation

        +
        JsonLocation getLocation()
        +
        Return the location that corresponds to the parser's current state in + the JSON input source. The location information is only valid in the + current parser state (or until the parser is advanced to a next state).
        +
        Returns:
        a non-null location corresponding to the current parser state + in JSON input source
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +
        Closes this parser and frees any resources associated with the + parser. This method closes the underlying input source.
        +
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Throws:
        +
        JsonException - if an i/o error occurs (IOException + would be cause of JsonException)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonParserFactory.html b/.settings/javax/json/stream/JsonParserFactory.html new file mode 100644 index 0000000..10e66e8 --- /dev/null +++ b/.settings/javax/json/stream/JsonParserFactory.html @@ -0,0 +1,333 @@ + + + + + + +JsonParserFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Interface JsonParserFactory

+
+
+
+
    +
  • +
    +
    +
    public interface JsonParserFactory
    +
    Factory for creating JsonParser instances. If a factory + instance is configured with a configuration, the configuration applies + to all parser instances created using that factory instance. + +

    + The class Json also provides methods to create + JsonParser instances, but using JsonParserFactory is + preferred when creating multiple parser instances as shown in the following + example: + +

    + 
    + JsonParserFactory factory = Json.createParserFactory();
    + JsonParser parser1 = factory.createParser(...);
    + JsonParser parser2 = factory.createParser(...);
    + 
    + 
    + +

    All the methods in this class are safe for use by multiple concurrent + threads.

    +
    Author:
    +
    Jitendra Kotamraju
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonParsercreateParser(java.io.InputStream in) +
      Creates a JSON parser from the specified byte stream.
      +
      JsonParsercreateParser(java.io.InputStream in, + java.nio.charset.Charset charset) +
      Creates a JSON parser from the specified byte stream.
      +
      JsonParsercreateParser(JsonArray array) +
      Creates a JSON parser from the specified JSON array.
      +
      JsonParsercreateParser(JsonObject obj) +
      Creates a JSON parser from the specified JSON object.
      +
      JsonParsercreateParser(java.io.Reader reader) +
      Creates a JSON parser from a character stream.
      +
      java.util.Map<java.lang.String,?>getConfigInUse() +
      Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON parsers.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createParser

        +
        JsonParser createParser(java.io.Reader reader)
        +
        Creates a JSON parser from a character stream.
        +
        Parameters:
        reader - a i/o reader from which JSON is to be read
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        JsonParser createParser(java.io.InputStream in)
        +
        Creates a JSON parser from the specified byte stream. + The character encoding of the stream is determined + as specified in RFC 4627.
        +
        Parameters:
        in - i/o stream from which JSON is to be read
        +
        Throws:
        +
        JsonException - if encoding cannot be determined + or i/o error (IOException would be cause of JsonException)
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        JsonParser createParser(java.io.InputStream in,
        +                      java.nio.charset.Charset charset)
        +
        Creates a JSON parser from the specified byte stream. + The bytes of the stream are decoded to characters using the + specified charset.
        +
        Parameters:
        in - i/o stream from which JSON is to be read
        charset - a charset
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        JsonParser createParser(JsonObject obj)
        +
        Creates a JSON parser from the specified JSON object.
        +
        Parameters:
        obj - a JSON object
        +
      • +
      + + + +
        +
      • +

        createParser

        +
        JsonParser createParser(JsonArray array)
        +
        Creates a JSON parser from the specified JSON array.
        +
        Parameters:
        array - a JSON array
        +
      • +
      + + + +
        +
      • +

        getConfigInUse

        +
        java.util.Map<java.lang.String,?> getConfigInUse()
        +
        Returns a read-only map of supported provider specific configuration + properties that are used to configure the JSON parsers. + If there are any specified configuration properties that are not + supported by the provider, they won't be part of the returned map.
        +
        Returns:
        a map of supported provider specific properties that are used + to configure the created parsers. The map may be empty but not null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/JsonParsingException.html b/.settings/javax/json/stream/JsonParsingException.html new file mode 100644 index 0000000..5cba13f --- /dev/null +++ b/.settings/javax/json/stream/JsonParsingException.html @@ -0,0 +1,335 @@ + + + + + + +JsonParsingException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + + +
+
javax.json.stream
+

Class JsonParsingException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • + +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class JsonParsingException
    +extends JsonException
    +
    JsonParsingException is used when an incorrect JSON is + being parsed.
    +
    Author:
    +
    Jitendra Kotamraju
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonParsingException(java.lang.String message, + JsonLocation location) +
      Constructs a new runtime exception with the specified detail message.
      +
      JsonParsingException(java.lang.String message, + java.lang.Throwable cause, + JsonLocation location) +
      Constructs a new runtime exception with the specified detail message and + cause.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      JsonLocationgetLocation() +
      Return the location of the incorrect JSON.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonParsingException

        +
        public JsonParsingException(java.lang.String message,
        +                    JsonLocation location)
        +
        Constructs a new runtime exception with the specified detail message. + The cause is not initialized, and may subsequently be initialized by a + call to Throwable.initCause(java.lang.Throwable).
        +
        Parameters:
        message - the detail message. The detail message is saved for + later retrieval by the Throwable.getMessage() method.
        location - the location of the incorrect JSON
        +
      • +
      + + + +
        +
      • +

        JsonParsingException

        +
        public JsonParsingException(java.lang.String message,
        +                    java.lang.Throwable cause,
        +                    JsonLocation location)
        +
        Constructs a new runtime exception with the specified detail message and + cause.

        Note that the detail message associated with + cause is not automatically incorporated in + this runtime exception's detail message.

        +
        Parameters:
        message - the detail message (which is saved for later retrieval + by the Throwable.getMessage() method).
        cause - the cause (which is saved for later retrieval by the + Throwable.getCause() method). (A null value is + permitted, and indicates that the cause is nonexistent or + unknown.)
        location - the location of the incorrect JSON
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLocation

        +
        public JsonLocation getLocation()
        +
        Return the location of the incorrect JSON.
        +
        Returns:
        the non-null location of the incorrect JSON
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonGenerationException.html b/.settings/javax/json/stream/class-use/JsonGenerationException.html new file mode 100644 index 0000000..4747cab --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonGenerationException.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class javax.json.stream.JsonGenerationException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.stream.JsonGenerationException

+
+
No usage of javax.json.stream.JsonGenerationException
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonGenerator.html b/.settings/javax/json/stream/class-use/JsonGenerator.html new file mode 100644 index 0000000..8a4eda3 --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonGenerator.html @@ -0,0 +1,395 @@ + + + + + + +Uses of Interface javax.json.stream.JsonGenerator (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.stream.JsonGenerator

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + +
    Packages that use JsonGenerator 
    PackageDescription
    javax.json +
    Provides an object model API to process JSON.
    +
    javax.json.spi +
    Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
    +
    javax.json.stream +
    Provides a streaming API to parse and generate + JSON.
    +
    +
  • +
  • +
      +
    • + + +

      Uses of JsonGenerator in javax.json

      + + + + + + + + + + + + + + + + +
      Methods in javax.json that return JsonGenerator 
      Modifier and TypeMethod and Description
      static JsonGeneratorJson.createGenerator(java.io.OutputStream out) +
      Creates a JSON generator for writing JSON to a byte stream.
      +
      static JsonGeneratorJson.createGenerator(java.io.Writer writer) +
      Creates a JSON generator for writing JSON to a character stream.
      +
      +
    • +
    • + + +

      Uses of JsonGenerator in javax.json.spi

      + + + + + + + + + + + + + + + + +
      Methods in javax.json.spi that return JsonGenerator 
      Modifier and TypeMethod and Description
      abstract JsonGeneratorJsonProvider.createGenerator(java.io.OutputStream out) +
      Creates a JSON generator for writing JSON text to a byte stream.
      +
      abstract JsonGeneratorJsonProvider.createGenerator(java.io.Writer writer) +
      Creates a JSON generator for writing JSON text to a character stream.
      +
      +
    • +
    • + + +

      Uses of JsonGenerator in javax.json.stream

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods in javax.json.stream that return JsonGenerator 
      Modifier and TypeMethod and Description
      JsonGeneratorJsonGeneratorFactory.createGenerator(java.io.OutputStream out) +
      Creates a JSON generator to write JSON text to a byte stream.
      +
      JsonGeneratorJsonGeneratorFactory.createGenerator(java.io.OutputStream out, + java.nio.charset.Charset charset) +
      Creates a JSON generator to write JSON text to a byte stream.
      +
      JsonGeneratorJsonGeneratorFactory.createGenerator(java.io.Writer writer) +
      Creates a JSON generator to write JSON text to a character stream.
      +
      JsonGeneratorJsonGenerator.write(java.math.BigDecimal value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(java.math.BigInteger value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(boolean value) +
      Writes a JSON true or false value within the current array context.
      +
      JsonGeneratorJsonGenerator.write(double value) +
      Writes the specified value as a JSON number value within the current + array context.
      +
      JsonGeneratorJsonGenerator.write(int value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(JsonValue value) +
      Writes the specified value as a JSON value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(long value) +
      Writes the specified value as a JSON number value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String value) +
      Writes the specified value as a JSON string value within + the current array context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + java.math.BigDecimal value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + java.math.BigInteger value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + boolean value) +
      Writes a JSON name/boolean value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + double value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + int value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + JsonValue value) +
      Writes a JSON name/value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + long value) +
      Writes a JSON name/number value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.write(java.lang.String name, + java.lang.String value) +
      Writes a JSON name/string value pair in the current object context.
      +
      JsonGeneratorJsonGenerator.writeEnd() +
      Writes the end of the current context.
      +
      JsonGeneratorJsonGenerator.writeNull() +
      Writes a JSON null value within the current array context.
      +
      JsonGeneratorJsonGenerator.writeNull(java.lang.String name) +
      Writes a JSON name/null value pair in an current object context.
      +
      JsonGeneratorJsonGenerator.writeStartArray() +
      Writes the JSON start array character.
      +
      JsonGeneratorJsonGenerator.writeStartArray(java.lang.String name) +
      Writes the JSON name/start array character pair with in the current + object context.
      +
      JsonGeneratorJsonGenerator.writeStartObject() +
      Writes the JSON start object character.
      +
      JsonGeneratorJsonGenerator.writeStartObject(java.lang.String name) +
      Writes the JSON name/start object character pair in the current + object context.
      +
      +
    • +
    +
  • +
+
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonGeneratorFactory.html b/.settings/javax/json/stream/class-use/JsonGeneratorFactory.html new file mode 100644 index 0000000..92d4df3 --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonGeneratorFactory.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Interface javax.json.stream.JsonGeneratorFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.stream.JsonGeneratorFactory

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonLocation.html b/.settings/javax/json/stream/class-use/JsonLocation.html new file mode 100644 index 0000000..506c8f5 --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonLocation.html @@ -0,0 +1,191 @@ + + + + + + +Uses of Interface javax.json.stream.JsonLocation (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.stream.JsonLocation

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonParser.Event.html b/.settings/javax/json/stream/class-use/JsonParser.Event.html new file mode 100644 index 0000000..e072724 --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonParser.Event.html @@ -0,0 +1,175 @@ + + + + + + +Uses of Class javax.json.stream.JsonParser.Event (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.stream.JsonParser.Event

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonParser.html b/.settings/javax/json/stream/class-use/JsonParser.html new file mode 100644 index 0000000..86fb65b --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonParser.html @@ -0,0 +1,252 @@ + + + + + + +Uses of Interface javax.json.stream.JsonParser (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.stream.JsonParser

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonParserFactory.html b/.settings/javax/json/stream/class-use/JsonParserFactory.html new file mode 100644 index 0000000..2c0192c --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonParserFactory.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Interface javax.json.stream.JsonParserFactory (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Interface
javax.json.stream.JsonParserFactory

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/class-use/JsonParsingException.html b/.settings/javax/json/stream/class-use/JsonParsingException.html new file mode 100644 index 0000000..87ee83d --- /dev/null +++ b/.settings/javax/json/stream/class-use/JsonParsingException.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class javax.json.stream.JsonParsingException (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Class
javax.json.stream.JsonParsingException

+
+
No usage of javax.json.stream.JsonParsingException
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/package-frame.html b/.settings/javax/json/stream/package-frame.html new file mode 100644 index 0000000..21b507e --- /dev/null +++ b/.settings/javax/json/stream/package-frame.html @@ -0,0 +1,33 @@ + + + + + + +javax.json.stream (JSR 353 (JSON Processing) API 1.0 API) + + + + +

javax.json.stream

+ + + diff --git a/.settings/javax/json/stream/package-summary.html b/.settings/javax/json/stream/package-summary.html new file mode 100644 index 0000000..9eb0aea --- /dev/null +++ b/.settings/javax/json/stream/package-summary.html @@ -0,0 +1,242 @@ + + + + + + +javax.json.stream (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package javax.json.stream

+
+
Provides a streaming API to parse and generate + JSON.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    JsonGenerator +
    Writes JSON data to an output source in a streaming way.
    +
    JsonGeneratorFactory +
    Factory to create JsonGenerator instances.
    +
    JsonLocation +
    Provides the location information of a JSON event in an input source.
    +
    JsonParser +
    Provides forward, read-only access to JSON data in a streaming way.
    +
    JsonParserFactory +
    Factory for creating JsonParser instances.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    JsonParser.Event +
    An event from JsonParser.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    JsonGenerationException +
    JsonGenerationException indicates an incorrect JSON is + being generated.
    +
    JsonParsingException +
    JsonParsingException is used when an incorrect JSON is + being parsed.
    +
    +
  • +
+ + + +

Package javax.json.stream Description

+
Provides a streaming API to parse and generate + JSON. + +

+ The streaming API consists of the interfaces + JsonParser and + JsonGenerator. The interface JsonParser + contains methods to parse JSON in a streaming way. The interface + JsonGenerator contains methods to write JSON to an output source + in a streaming way. + +

+ JsonParser provides forward, read-only access to JSON data using the + pull parsing programming model. In this model the application code controls + the thread and calls methods in the parser interface to move the parser + forward or to obtain JSON data from the current state of the parser. + +

+ JsonGenerator provides methods to write JSON to an output source. + The generator writes name/value pairs in JSON objects and values in JSON + arrays. + +

+ The streaming API is a low-level API designed to process large amounts of + JSON data efficiently. Other JSON frameworks (such as JSON binding) can be + implemented using this API.

+
Since:
+
JSON Processing 1.0
+
Author:
+
Jitendra Kotamraju
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/package-tree.html b/.settings/javax/json/stream/package-tree.html new file mode 100644 index 0000000..5c74819 --- /dev/null +++ b/.settings/javax/json/stream/package-tree.html @@ -0,0 +1,180 @@ + + + + + + +javax.json.stream Class Hierarchy (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package javax.json.stream

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/javax/json/stream/package-use.html b/.settings/javax/json/stream/package-use.html new file mode 100644 index 0000000..1d1dcea --- /dev/null +++ b/.settings/javax/json/stream/package-use.html @@ -0,0 +1,247 @@ + + + + + + +Uses of Package javax.json.stream (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + + + + +
+

Uses of Package
javax.json.stream

+
+
+ +
+ + + + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..1acbdb9 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +encoding//src/TaskManager/WeatherPanel.java=UTF-8 +encoding//src/Util/ForecastParser.java=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 8000cd6..3a21537 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,11 +1,11 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 974ae04..0000000 --- a/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,54 +0,0 @@ -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -sp_cleanup.add_default_serial_version_id=true -sp_cleanup.add_generated_serial_version_id=false -sp_cleanup.add_missing_annotations=true -sp_cleanup.add_missing_deprecated_annotations=true -sp_cleanup.add_missing_methods=false -sp_cleanup.add_missing_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_missing_override_annotations_interface_methods=true -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=false -sp_cleanup.format_source_code=true -sp_cleanup.format_source_code_changes_only=false -sp_cleanup.make_local_variable_final=false -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_type_abstract_if_missing_method=false -sp_cleanup.make_variable_declarations_final=true -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=false -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_trailing_whitespaces=false -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=false -sp_cleanup.remove_unused_imports=false -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_blocks=false -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_parentheses_in_expressions=false -sp_cleanup.use_this_for_non_static_field_access=false -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=false -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/.settings/overview-frame.html b/.settings/overview-frame.html new file mode 100644 index 0000000..f29b8bf --- /dev/null +++ b/.settings/overview-frame.html @@ -0,0 +1,23 @@ + + + + + + +Overview List (JSR 353 (JSON Processing) API 1.0 API) + + + + + + +

 

+ + diff --git a/.settings/overview-summary.html b/.settings/overview-summary.html new file mode 100644 index 0000000..f46e6c7 --- /dev/null +++ b/.settings/overview-summary.html @@ -0,0 +1,240 @@ + + + + + + +Overview (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

JSR 353 (JSON Processing) API 1.0 API

+
+
+
+
The Java API for JSON Processing provides portable APIs to parse, +generate, transform, and query JSON using the +streaming API or the object model API.
+
+

See: Description

+
+
+ + + + + + + + + + + + + + + + + + + + +
JSON Processing Packages 
PackageDescription
javax.json +
Provides an object model API to process JSON.
+
javax.json.spi +
Service Provider Interface (SPI) to plug in implementations for + JSON processing objects.
+
javax.json.stream +
Provides a streaming API to parse and generate + JSON.
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/overview-tree.html b/.settings/overview-tree.html new file mode 100644 index 0000000..1df9e3d --- /dev/null +++ b/.settings/overview-tree.html @@ -0,0 +1,235 @@ + + + + + + +Class Hierarchy (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/package-list b/.settings/package-list new file mode 100644 index 0000000..cfd9070 --- /dev/null +++ b/.settings/package-list @@ -0,0 +1,3 @@ +javax.json +javax.json.spi +javax.json.stream diff --git a/.settings/resources/background.gif b/.settings/resources/background.gif new file mode 100644 index 0000000..f471940 Binary files /dev/null and b/.settings/resources/background.gif differ diff --git a/.settings/resources/tab.gif b/.settings/resources/tab.gif new file mode 100644 index 0000000..1a73a83 Binary files /dev/null and b/.settings/resources/tab.gif differ diff --git a/.settings/resources/titlebar.gif b/.settings/resources/titlebar.gif new file mode 100644 index 0000000..17443b3 Binary files /dev/null and b/.settings/resources/titlebar.gif differ diff --git a/.settings/resources/titlebar_end.gif b/.settings/resources/titlebar_end.gif new file mode 100644 index 0000000..3ad78d4 Binary files /dev/null and b/.settings/resources/titlebar_end.gif differ diff --git a/.settings/serialized-form.html b/.settings/serialized-form.html new file mode 100644 index 0000000..67d3c5b --- /dev/null +++ b/.settings/serialized-form.html @@ -0,0 +1,158 @@ + + + + + + +Serialized Form (JSR 353 (JSON Processing) API 1.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net

+ + diff --git a/.settings/stylesheet.css b/.settings/stylesheet.css new file mode 100644 index 0000000..0aeaa97 --- /dev/null +++ b/.settings/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/DP_cloud.jpg b/DP_cloud.jpg new file mode 100644 index 0000000..88629f9 Binary files /dev/null and b/DP_cloud.jpg differ diff --git a/DP_cloud_rain.jpg b/DP_cloud_rain.jpg new file mode 100644 index 0000000..8a8e739 Binary files /dev/null and b/DP_cloud_rain.jpg differ diff --git a/DP_lesscloud.jpg b/DP_lesscloud.jpg new file mode 100644 index 0000000..5280bb7 Binary files /dev/null and b/DP_lesscloud.jpg differ diff --git a/DP_manycloud.jpg b/DP_manycloud.jpg new file mode 100644 index 0000000..54fed84 Binary files /dev/null and b/DP_manycloud.jpg differ diff --git a/DP_rain.jpg b/DP_rain.jpg new file mode 100644 index 0000000..1e5817a Binary files /dev/null and b/DP_rain.jpg differ diff --git a/DP_rain_snow.png b/DP_rain_snow.png new file mode 100644 index 0000000..89def01 Binary files /dev/null and b/DP_rain_snow.png differ diff --git a/DP_snow.jpg b/DP_snow.jpg new file mode 100644 index 0000000..b1f794f Binary files /dev/null and b/DP_snow.jpg differ diff --git a/DP_sunny.jpg b/DP_sunny.jpg new file mode 100644 index 0000000..c1d77a4 Binary files /dev/null and b/DP_sunny.jpg differ diff --git a/LocMetrics.css b/LocMetrics.css new file mode 100644 index 0000000..480dcc0 --- /dev/null +++ b/LocMetrics.css @@ -0,0 +1 @@ +CAPTION.MYTABLE{background-color:#8080ff;color:white;border-style:solid;border-width:2px;border-color:black;}TABLE.MYTABLE{font-family:arial;font-size:10pt;background-color:#808080;width:800px;border-style:solid;border-color:black;border-width:2px;}TH.MYTABLE{font-size:10pt;color:white;}TR.MYTABLE{}TD.MYTABLE{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:right;}TD.MYTABLEL{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:left;} \ No newline at end of file diff --git a/LocMetrics.html b/LocMetrics.html new file mode 100644 index 0000000..c20b781 --- /dev/null +++ b/LocMetrics.html @@ -0,0 +1 @@ +

Overall
SymbolCountDefinition
Source Files29Source Files
Directories10Directories
LOC4140Lines of Code
BLOC399Blank Lines of Code
SLOC-P3345Physical Executable Lines of Code
SLOC-L 2786Logical Executable Lines of Code
MVG259McCabe VG Complexity
C&SLOC205Code and Comment Lines of Code
CLOC396Comment Only Lines of Code
CWORD2413Commentary Words
HCLOC0Header Comment Lines of Code
HCWORD0Header Commentary Words

C:\Users\ByungKyu\Desktop\JDP - FOLDERS
FolderFilesLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
Total29414033452786259399205396241300
C:\Users\ByungKyu\Desktop\JDP29414033452786259399205396241300
C:\Users\ByungKyu\Desktop\JDP\src29414033452786259399205396241300
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo598579069069126926959300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager1624461959161712421570272155900
C:\Users\ByungKyu\Desktop\JDP\src\Util87095964796658435526100

C:\Users\ByungKyu\Desktop\JDP - FILES
FileLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\DrawGraph.java2431741531652391721200
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\newsPanel.java16711410062203112200
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\Submain.java513734110744300
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\twodayPanel.java21319115511142288800
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\weekWeather.java311274248352824912800
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AddWindow.java2452031746253179300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AlarmFrame.java46363407331100
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\CalendarPanel.java2352021751826072200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ContentPanel.java46343111002200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\EditWindow.java25120317583041810100
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\FilterWindow.java204162119131532710600
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MainFrame.java1771531311115595300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MenuBar.java7160502902200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\myDate.java9452377303917800
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\Task.java14571508806627400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskAlarm.java201290503500
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskManager.java8640200000
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskPanel.java1301169359251400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TodayScheduleFrame.java1841641391396114400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ToDoList.java4283442722034445062300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\WeatherPanel.java1621411241280133100
C:\Users\ByungKyu\Desktop\JDP\src\Util\ApiExplorer.java64534655063200
C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustExplorer.java34282323331600
C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustParser.java56443746061300
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastExplorer.java1088668171013125500
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidExplorer.java847260841386700
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidParser.java106937867061500
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastParser.java15213010016141083800
C:\Users\ByungKyu\Desktop\JDP\src\Util\NewsSAXParser.java105906789462500

\ No newline at end of file diff --git a/LocMetricsCommentWords.csv b/LocMetricsCommentWords.csv new file mode 100644 index 0000000..d547e41 --- /dev/null +++ b/LocMetricsCommentWords.csv @@ -0,0 +1,766 @@ +Word,Count +*,201 +the,149 +,92 +to,82 +used,52 +task,46 +Method,38 +of,34 +a,26 +@param,21 +this,15 +instance,15 +window,14 +panel,13 +@return,13 +메소드,13 +set,13 +task's,13 +날씨,12 +and,12 +JList,12 +tasks,11 +예보,11 +category,11 +온도,11 +data,11 +add,10 +설정,10 +Add,10 +return,10 +date,10 +text,9 +array,9 +정보,9 +method,8 +on,8 +create,8 +BorderLayout,8 +new,8 +display,8 +been,8 +Charles,7 +month,7 +수,7 +year,7 +class,7 +출력,7 +index,7 +@author,7 +file,7 +데이터,7 +from,7 +day,7 +with,7 +field,7 +저장,6 +selected,6 +in,6 +filter,6 +Task,6 +정보를,6 +Henry,6 +has,6 +name,6 +priority,6 +user,6 +페이지,6 +파서,6 +details,6 +exported,6 +줄,6 +검색할,6 +충무로,6 +뉴스,6 +생성,6 +나타낼,6 +for,6 +추가,6 +it,5 +해쉬맵,5 +점,5 +when,5 +기온,5 +레이블,5 +변수,5 +그리기,5 +Create,5 +is,5 +block,5 +위한,5 +TODO,5 +if,5 +notify,5 +체감온도,5 +보여주는,5 +layout,5 +선,5 +Auto-generated,5 +출력하는,5 +notes,5 +start,5 +representation,4 +패널이다,4 +최저,4 +날짜를,4 +performed,4 +grid,4 +패널,4 +be,4 +기준,4 +Class,4 +프레임,4 +때,4 +설정해줌,4 +그래프의,4 +오전,4 +store,4 +시간,4 +그래프를,4 +크기,4 +catch,4 +홍대표,4 +bar,4 +list,4 +아이콘,4 +show,4 +track,4 +날짜,4 +최고,4 +파싱,4 +색깔,4 +SOUTH,4 +y축,4 +listener,4 +주간,4 +중기,4 +saved,4 +오후,4 +not,4 +menubar,4 +비라는,3 +actions,3 +날씨를,3 +DO,3 +export,3 +일정,3 +단어가,3 +into,3 +as,3 +그릴때,3 +CENTER,3 +구분없이,3 +have,3 +시간을,3 +fields,3 +대소문자,3 +현재,3 +button,3 +코드,3 +흐리고,3 +:,3 +위치,3 +\URLEncoder.encode(serviceKey,"\UTF-8"\));\,3 +item,3 +동네,3 +closed,3 +일주일간의,3 +make,3 +string,3 +reset,3 +있을,3 +셋팅,3 +information,3 +하루의,3 +editing,3 +구역,3 +NOTHING,3 +링크,3 +can,3 +open,3 +생성하고,3 +edit,3 +비교,3 +empty,3 +생성자,3 +프레임의,3 +기준점,2 +기사,2 +while,2 +turn,2 +실황,2 +후,2 +changed,2 +Menu,2 +스트림,2 +날씨의,2 +close,2 +populate,2 +chosen,2 +ToDoList,2 +나타내,2 +기상,2 +File,2 +A,2 +계산,2 +count,2 +확인하는,2 +변경,2 +x축,2 +구현,2 +미세먼지,2 +cannot,2 +한다,2 +위해,2 +뉴스파서를,2 +Input,2 +리스트,2 +etc,2 +items,2 +날짜별로,2 +input,2 +disable,2 +action,2 +맞게,2 +textual,2 +\날씨,\,2 +방식으로,2 +update,2 +프레임이다,2 +점들의,2 +동내,2 +adding,2 +exporting,2 +loop,2 +\서울,\,2 +Makes,2 +클래스,2 +정보가,2 +데이터를,2 +사용한다,2 +따라,2 +false,2 +x축과,2 +Date,2 +그래프,2 +맑음,2 +켜졌을때의,2 +받아와,2 +사이즈,2 +through,2 +그림,2 +스크롤바,2 +갯수,2 +명언을,2 +remove,2 +쓰임),2 +output,2 +크기조정,2 +일별,2 +30을,2 +달린,2 +불가,2 +온도점을,2 +dataLength를,2 +더해서,2 +clear,2 +설정해서,2 +manage,2 +스크롤,2 +y좌표를,2 +경기도,2 +program,2 +넣어줌,2 +반환,2 +import,2 +시작,2 +반환하는,2 +파싱을,2 +true,2 +수정,2 +current,2 +마우스,2 +객체를,2 +반환해주는,2 +정의,2 +최대,2 +menu,2 +API,2 +중기예보,2 +\인천,\,2 +저장함,2 +정수형으로,2 +buttons,2 +사용하여,2 +알람,2 +x좌표와,2 +경우,2 +받아오기,2 +패널을,2 +저장하는,2 +온도를,2 +길이,1 +아이콘도,1 +수직,1 +위쪽에,1 +@,1 +후의,1 +\state,\,1 +등등,1 +처음,1 +시간대가,1 +하나의,1 +minPoints,1 +y축을,1 +visible,1 +기사를,1 +x축의,1 +11,1 +found,1 +영어인지,1 +sure,1 +date=,1 +자정~,1 +후~,1 +예보)를,1 +제목을,1 +management,1 +클릭하면,1 +정보와,1 +생성하는,1 +JTextArea의,1 +서울,1 +해당되는,1 +사용한,1 +수신,1 +off,1 +신규,1 +먼지의,1 +내용,1 +frame,1 +ListListener,1 +눈과,1 +TaskList,1 +파싱된,1 +Objects,1 +양식에,1 +listenrOn,1 +drop,1 +띄움,1 +수신을,1 +ActionListener,1 +검사,1 +out,1 +사용해,1 +이용해서,1 +(아이콘),1 +마크별,1 +있을때,1 +링크를,1 +날씨가,1 +2일간의,1 +startDate,1 +listListener,1 +files,1 +붙어있는,1 +클릭시,1 +저장(그래프,1 +10일,1 +'i',1 +extract,1 +눈옴,1 +기본,1 +one,1 +세팅해주는,1 +10도,1 +iDay,1 +1.00,1 +들어가는,1 +Listener,1 +배치,1 +제공하는,1 +there,1 +using,1 +데이타,1 +author,1 +사용자가,1 +simple,1 +Byungkyu,1 +상태에,1 +variables,1 +at,1 +SKY의,1 +오후날씨가,1 +(correlates,1 +맞추기,1 +주간날씨보기,1 +번갈아가면서,1 +제목과,1 +default,1 +제목,1 +Ji,1 +8~10일,1 +받아,1 +오늘의,1 +upon,1 +\온도,\,1 +보이도록,1 +\found,\,1 +조절,1 +뉴스제목,1 +오는,1 +기준온도점을,1 +UI,1 +조회,1 +based,1 +enable,1 +rowPanel,1 +보여짐,1 +시간대별,1 +differentiate,1 +y축에,1 +EditWindow,1 +3~7일까지는,1 +\,\,1 +within,1 +제목은,1 +기상정보,1 +Tasks,1 +존재하는지,1 +close),1 +Labels,1 +주말,1 +마크,1 +간격)로,1 +'t',1 +@ToDoList.java,1 +거리,1 +농도를,1 +\최소,최대온도를\,1 +별로,1 +정하기,1 +setzero를,1 +11/14,1 +띄워서,1 +labels,1 +Changes,1 +JSONObject를,1 +들어오는,1 +받고,1 +파서에서,1 +차지하는,1 +등,1 +only,1 +12,1 +param,1 +mouselistener,1 +10도단위,1 +down,1 +url을,1 +버퍼,1 +Disable,1 +검사함,1 +최소온도,1 +class:,1 +increment,1 +들어옴),1 +@version,1 +SAXParser로,1 +알아낸,1 +보여준다,1 +each,1 +9,1 +마크를,1 +up,1 +이틀간의,1 +날씨(동네,1 +*홍대표,1 +위치를,1 +조정,1 +00시의,1 +링크가,1 +named,1 +해쉬맵에서,1 +ji,1 +*표시,1 +(하루1개),1 +일정을,1 +수신할,1 +titles,1 +위해),1 +10,1 +API에서,1 +랜덤하게,1 +Used,1 +항상,1 +how,1 +actionlistener,1 +와서,1 +no,1 +따라서,1 +읽어들일,1 +flow,1 +함수,1 +http,1 +마찬가지로,1 +scrollPane,1 +8~10일까지는,1 +(그래프,1 +문자열을,1 +기준으로,1 +예보(약,1 +completed,1 +same,1 +템,1 +미세,1 +counter,1 +that,1 +새,1 +클래스의,1 +(menubar1),1 +최소온도에,1 +=,1 +형식으로,1 +\JList,\,1 +쓰일,1 +\author=Ji,\,1 +똑같이,1 +so,1 +color,1 +location,1 +불가능하게,1 +boolean,1 +tree,1 +형식에,1 +텍스트,1 +준다,1 +날씨),1 +2011/04/02,1 +구름많음,1 +응답받은,1 +JListListener,1 +json,1 +표시,1 +6시면,1 +최고온도,1 +3~8일까지,1 +알아냄,1 +changes,1 +info,1 +올렸을때,1 +end,1 +추가함으로써,1 +prevent,1 +계산한다,1 +copy,1 +xml,1 +탭에,1 +\최대,최소\,1 +startup,1 +array),1 +해쉬맵으로,1 +호출,1 +url,1 +maxPoints,1 +\오전,\,1 +그려주는,1 +(tasks,1 +그려준다,1 +엘리먼트,1 +그렸고,1 +명언,1 +파서를,1 +순서대로,1 +Constructor,1 +exportText,1 +자세한,1 +버퍼로,1 +percComp,1 +임시,1 +열어줌,1 +길이만큼,1 +noneditable,1 +판넬과의,1 +뉴스),1 +날씨만,1 +Attaches,1 +열린다,1 +\created,\,1 +기온과,1 +요청,1 +걸리는,1 +generic,1 +범위,1 +-,1 +수신를,1 +미세먼지의,1 +호환하기,1 +클래스를,1 +클릭되면,1 +가져오는,1 +추가해줌,1 +받아옴),1 +받아서,1 +구름만,1 +패널선언,1 +정보갯수,1 +JTBC,1 +\최고,\,1 +2016.11.17,1 +다,1 +사용함,1 +문서의,1 +주었다,1 +나눌,1 +3~7일,1 +이,1 +눈이라는,1 +options,1 +중간점을,1 +관련,1 +monitor,1 +받아온시간,1 +ArrayList에,1 +받아와서,1 +실행,1 +\요청,\,1 +메소드이다,1 +단어가잇을,1 +(now,1 +화질이,1 +note,1 +한줄씩,1 +바꿔줌,1 +Author,1 +해당하는,1 +\Date(temp.getStartDate().getYear(),temp.getStartDate().getMonth(),temp.getStartDate().getDay(),temp.getStartDate().getHour(),temp.getStartDate().getMin());\,1 +함,1 +\(날씨,\,1 +JTextArea를,1 +우측,1 +맞춰,1 +의미하는,1 +Manager,1 +do,1 +육상,1 +달력을,1 +없으면,1 +you,1 +구한,1 +등등을,1 +ended,1 +굵기,1 +이틀간,1 +길이에,1 +formatted,1 +편의에,1 +스트링으로,1 +errors,1 +경로,1 +기본적인,1 +Buttons,1 +이미지,1 +미리보기,1 +날짜에,1 +끊어서,1 +DrawGraph,1 +중앙에,1 +날짜별,1 +its,1 +put,1 +구름에,1 +옴,1 +기사의,1 +objects,1 +사용,1 +하늘,1 +whether,1 +역할을,1 +받아온,1 +각종,1 +paintComponent,1 +오늘,1 +시간대별(3시간,1 +back,1 +통한,1 +modifiying,1 +부분을,1 +시간대,1 +\서비스키,\,1 +상태,1 +percentage,1 +or,1 +구름과,1 +몇일,1 +양에따라,1 +ForecastMidParser,1 +take,1 +JTextArea로,1 +최소,1 +들어와,1 +properly,1 +날짜의,1 +stub,1 +수직스크롤,1 +menu...),1 +between,1 +안에,1 +1일,1 +normal,1 +white,1 +option,1 +\주간날씨,\,1 +깔끔하게,1 +(3일,1 +자료의,1 +content,1 +바뀜,1 +흐림,1 +Java,1 +추가하는,1 +빼줌(파서,1 +many,1 +endDate,1 +전망조회,1 +panel에,1 +act,1 +될,1 +구름조금,1 +서비스의,1 +깨끗해짐,1 +\"\�"\\,1 +MainFrame,1 +2016.11.05,1 +일주일의,1 +반환한다,1 +파싱하여,1 +메뉴,1 +최저온도,1 +modifying,1 +메인,1 +selection,1 +use,1 +printWriter,1 +creates,1 +EAST,1 +매개변수로,1 +보여줌,1 +예보의,1 +달아서,1 +흐리기만함,1 +8일치,1 +눈,비옴,1 +Make,1 +링크와,1 +10줄까지만,1 +\selected,\,1 +최저기온,1 +비옴,1 +우측에,1 +단위로,1 +일정이,1 +하나를,1 +아이콘으로,1 +각,1 +iterator를,1 diff --git a/LocMetricsFiles.csv b/LocMetricsFiles.csv new file mode 100644 index 0000000..2075b67 --- /dev/null +++ b/LocMetricsFiles.csv @@ -0,0 +1,30 @@ +File,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\DrawGraph.java,243,174,153,16,52,39,17,212,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\newsPanel.java,167,114,100,6,22,0,31,122,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\Submain.java,51,37,34,1,10,7,4,43,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\twodayPanel.java,213,191,155,11,14,22,8,88,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\weekWeather.java,311,274,248,35,28,24,9,128,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AddWindow.java,245,203,174,6,25,3,17,93,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AlarmFrame.java,46,36,34,0,7,3,3,11,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\CalendarPanel.java,235,202,175,18,26,0,7,22,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ContentPanel.java,46,34,31,1,10,0,2,2,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\EditWindow.java,251,203,175,8,30,4,18,101,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\FilterWindow.java,204,162,119,13,15,3,27,106,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MainFrame.java,177,153,131,11,15,5,9,53,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MenuBar.java,71,60,50,2,9,0,2,2,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\myDate.java,94,52,37,7,3,0,39,178,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\Task.java,145,71,50,8,8,0,66,274,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskAlarm.java,20,12,9,0,5,0,3,5,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskManager.java,8,6,4,0,2,0,0,0,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskPanel.java,130,116,93,5,9,2,5,14,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TodayScheduleFrame.java,184,164,139,13,9,6,11,44,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ToDoList.java,428,344,272,20,34,44,50,623,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\WeatherPanel.java,162,141,124,12,8,0,13,31,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ApiExplorer.java,64,53,46,5,5,0,6,32,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustExplorer.java,34,28,23,2,3,3,3,16,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustParser.java,56,44,37,4,6,0,6,13,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastExplorer.java,108,86,68,17,10,13,12,55,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidExplorer.java,84,72,60,8,4,13,8,67,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidParser.java,106,93,78,6,7,0,6,15,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastParser.java,152,130,100,16,14,10,8,38,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\NewsSAXParser.java,105,90,67,8,9,4,6,25,0,0 diff --git a/LocMetricsFolders.csv b/LocMetricsFolders.csv new file mode 100644 index 0000000..d060353 --- /dev/null +++ b/LocMetricsFolders.csv @@ -0,0 +1,7 @@ +Folder,Files,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +Total,29,4140,3345,2786,259,399,205,396,2413,0,0 +C:\Users\ByungKyu\Desktop\JDP,29,4140,3345,2786,259,399,205,396,2413,0,0 +C:\Users\ByungKyu\Desktop\JDP\src,29,4140,3345,2786,259,399,205,396,2413,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo,5,985,790,690,69,126,92,69,593,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager,16,2446,1959,1617,124,215,70,272,1559,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util,8,709,596,479,66,58,43,55,261,0,0 diff --git a/LocMetricsFunctions.csv b/LocMetricsFunctions.csv new file mode 100644 index 0000000..b2cfeab --- /dev/null +++ b/LocMetricsFunctions.csv @@ -0,0 +1 @@ +File,Function,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD diff --git a/LocMetricsFunctions.html b/LocMetricsFunctions.html new file mode 100644 index 0000000..9c8b979 --- /dev/null +++ b/LocMetricsFunctions.html @@ -0,0 +1 @@ +
C:\Users\ByungKyu\Desktop\JDP - FUNCTIONS
FileFunctionLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORD

\ No newline at end of file diff --git a/LocMetricsPie.jpg b/LocMetricsPie.jpg new file mode 100644 index 0000000..c6a1a14 Binary files /dev/null and b/LocMetricsPie.jpg differ diff --git a/LocMetricsPie.png b/LocMetricsPie.png new file mode 100644 index 0000000..5410a96 Binary files /dev/null and b/LocMetricsPie.png differ diff --git a/Task.jpg b/Task.jpg new file mode 100644 index 0000000..b94c379 Binary files /dev/null and b/Task.jpg differ diff --git a/ToDoListTasks.txt b/ToDoListTasks.txt index e69de29..670dff7 100644 --- a/ToDoListTasks.txt +++ b/ToDoListTasks.txt @@ -0,0 +1,3 @@ +소공 기말�2016�12�6�1�0�Other�false�Personal�ㅎ +주디프 기말�2016�12�6�1�0�Other�false�Personal�ㅎ +주디프 시험�2016�12�16�1�0�Other�false�Personal�123 diff --git a/bin/AddWindow$1.class b/bin/AddWindow$1.class deleted file mode 100644 index 9ac3781..0000000 Binary files a/bin/AddWindow$1.class and /dev/null differ diff --git a/bin/AddWindow.class b/bin/AddWindow.class deleted file mode 100644 index 60ddc43..0000000 Binary files a/bin/AddWindow.class and /dev/null differ diff --git a/bin/ApiExplorer.class b/bin/ApiExplorer.class deleted file mode 100644 index a0f3454..0000000 Binary files a/bin/ApiExplorer.class and /dev/null differ diff --git a/bin/EditWindow$1.class b/bin/EditWindow$1.class deleted file mode 100644 index 8ab1236..0000000 Binary files a/bin/EditWindow$1.class and /dev/null differ diff --git a/bin/EditWindow.class b/bin/EditWindow.class deleted file mode 100644 index 5c27e38..0000000 Binary files a/bin/EditWindow.class and /dev/null differ diff --git a/bin/FilterWindow.class b/bin/FilterWindow.class deleted file mode 100644 index 9c7609f..0000000 Binary files a/bin/FilterWindow.class and /dev/null differ diff --git a/bin/ForecastExplorer.class b/bin/ForecastExplorer.class deleted file mode 100644 index 5e75512..0000000 Binary files a/bin/ForecastExplorer.class and /dev/null differ diff --git a/bin/MainApp.class b/bin/MainApp.class deleted file mode 100644 index 0ed6166..0000000 Binary files a/bin/MainApp.class and /dev/null differ diff --git a/bin/NewsExplorer.class b/bin/NewsExplorer.class deleted file mode 100644 index 87fb9d3..0000000 Binary files a/bin/NewsExplorer.class and /dev/null differ diff --git a/bin/SubInfo/DrawGraph.class b/bin/SubInfo/DrawGraph.class new file mode 100644 index 0000000..ddee538 Binary files /dev/null and b/bin/SubInfo/DrawGraph.class differ diff --git a/bin/SubInfo/Submain.class b/bin/SubInfo/Submain.class new file mode 100644 index 0000000..114217f Binary files /dev/null and b/bin/SubInfo/Submain.class differ diff --git a/bin/SubInfo/newsPanel$1.class b/bin/SubInfo/newsPanel$1.class new file mode 100644 index 0000000..d4fb05b Binary files /dev/null and b/bin/SubInfo/newsPanel$1.class differ diff --git a/bin/SubInfo/newsPanel.class b/bin/SubInfo/newsPanel.class new file mode 100644 index 0000000..9e7a5f9 Binary files /dev/null and b/bin/SubInfo/newsPanel.class differ diff --git a/bin/SubInfo/twodayPanel$1.class b/bin/SubInfo/twodayPanel$1.class new file mode 100644 index 0000000..c2a443e Binary files /dev/null and b/bin/SubInfo/twodayPanel$1.class differ diff --git a/bin/SubInfo/twodayPanel.class b/bin/SubInfo/twodayPanel.class new file mode 100644 index 0000000..2529853 Binary files /dev/null and b/bin/SubInfo/twodayPanel.class differ diff --git a/bin/SubInfo/weekWeather.class b/bin/SubInfo/weekWeather.class new file mode 100644 index 0000000..076996a Binary files /dev/null and b/bin/SubInfo/weekWeather.class differ diff --git a/bin/SubwayExplorer.class b/bin/SubwayExplorer.class deleted file mode 100644 index 06d1ace..0000000 Binary files a/bin/SubwayExplorer.class and /dev/null differ diff --git a/bin/Task.class b/bin/Task.class deleted file mode 100644 index d252a6a..0000000 Binary files a/bin/Task.class and /dev/null differ diff --git a/bin/TaskManager/AddWindow$1.class b/bin/TaskManager/AddWindow$1.class new file mode 100644 index 0000000..a0179f3 Binary files /dev/null and b/bin/TaskManager/AddWindow$1.class differ diff --git a/bin/TaskManager/AddWindow.class b/bin/TaskManager/AddWindow.class new file mode 100644 index 0000000..f5a0325 Binary files /dev/null and b/bin/TaskManager/AddWindow.class differ diff --git a/bin/TaskManager/AlarmFrame.class b/bin/TaskManager/AlarmFrame.class new file mode 100644 index 0000000..3d84705 Binary files /dev/null and b/bin/TaskManager/AlarmFrame.class differ diff --git a/bin/TaskManager/CalendarPanel$1.class b/bin/TaskManager/CalendarPanel$1.class new file mode 100644 index 0000000..956880b Binary files /dev/null and b/bin/TaskManager/CalendarPanel$1.class differ diff --git a/bin/TaskManager/CalendarPanel$2.class b/bin/TaskManager/CalendarPanel$2.class new file mode 100644 index 0000000..26eb458 Binary files /dev/null and b/bin/TaskManager/CalendarPanel$2.class differ diff --git a/bin/TaskManager/CalendarPanel.class b/bin/TaskManager/CalendarPanel.class new file mode 100644 index 0000000..20db994 Binary files /dev/null and b/bin/TaskManager/CalendarPanel.class differ diff --git a/bin/TaskManager/ContentPanel.class b/bin/TaskManager/ContentPanel.class new file mode 100644 index 0000000..96a92b6 Binary files /dev/null and b/bin/TaskManager/ContentPanel.class differ diff --git a/bin/TaskManager/EditWindow$1.class b/bin/TaskManager/EditWindow$1.class new file mode 100644 index 0000000..7f1f935 Binary files /dev/null and b/bin/TaskManager/EditWindow$1.class differ diff --git a/bin/TaskManager/EditWindow.class b/bin/TaskManager/EditWindow.class new file mode 100644 index 0000000..06c7da0 Binary files /dev/null and b/bin/TaskManager/EditWindow.class differ diff --git a/bin/TaskManager/FilterWindow.class b/bin/TaskManager/FilterWindow.class new file mode 100644 index 0000000..6537ffa Binary files /dev/null and b/bin/TaskManager/FilterWindow.class differ diff --git a/bin/TaskManager/MainFrame$1.class b/bin/TaskManager/MainFrame$1.class new file mode 100644 index 0000000..516bb9b Binary files /dev/null and b/bin/TaskManager/MainFrame$1.class differ diff --git a/bin/TaskManager/MainFrame.class b/bin/TaskManager/MainFrame.class new file mode 100644 index 0000000..9aad3dc Binary files /dev/null and b/bin/TaskManager/MainFrame.class differ diff --git a/bin/TaskManager/MenuBar.class b/bin/TaskManager/MenuBar.class new file mode 100644 index 0000000..d6d5eec Binary files /dev/null and b/bin/TaskManager/MenuBar.class differ diff --git a/bin/TaskManager/Task.class b/bin/TaskManager/Task.class new file mode 100644 index 0000000..8730749 Binary files /dev/null and b/bin/TaskManager/Task.class differ diff --git a/bin/TaskManager/TaskAlarm.class b/bin/TaskManager/TaskAlarm.class new file mode 100644 index 0000000..176393c Binary files /dev/null and b/bin/TaskManager/TaskAlarm.class differ diff --git a/bin/TaskManager/TaskManager.class b/bin/TaskManager/TaskManager.class new file mode 100644 index 0000000..b6c23fd Binary files /dev/null and b/bin/TaskManager/TaskManager.class differ diff --git a/bin/TaskManager/TaskPanel.class b/bin/TaskManager/TaskPanel.class new file mode 100644 index 0000000..f101062 Binary files /dev/null and b/bin/TaskManager/TaskPanel.class differ diff --git a/bin/TaskManager/ToDoList$listListener.class b/bin/TaskManager/ToDoList$listListener.class new file mode 100644 index 0000000..b6540bd Binary files /dev/null and b/bin/TaskManager/ToDoList$listListener.class differ diff --git a/bin/TaskManager/ToDoList.class b/bin/TaskManager/ToDoList.class new file mode 100644 index 0000000..420b493 Binary files /dev/null and b/bin/TaskManager/ToDoList.class differ diff --git a/bin/TaskManager/TodayScheduleFrame.class b/bin/TaskManager/TodayScheduleFrame.class new file mode 100644 index 0000000..88876d1 Binary files /dev/null and b/bin/TaskManager/TodayScheduleFrame.class differ diff --git a/bin/TaskManager/WeatherPanel.class b/bin/TaskManager/WeatherPanel.class new file mode 100644 index 0000000..7c5d978 Binary files /dev/null and b/bin/TaskManager/WeatherPanel.class differ diff --git a/bin/TaskManager/myDate.class b/bin/TaskManager/myDate.class new file mode 100644 index 0000000..9ca30a6 Binary files /dev/null and b/bin/TaskManager/myDate.class differ diff --git a/bin/ToDoList$1.class b/bin/ToDoList$1.class deleted file mode 100644 index fcc1746..0000000 Binary files a/bin/ToDoList$1.class and /dev/null differ diff --git a/bin/ToDoList$listListener.class b/bin/ToDoList$listListener.class deleted file mode 100644 index 8486fec..0000000 Binary files a/bin/ToDoList$listListener.class and /dev/null differ diff --git a/bin/ToDoList.class b/bin/ToDoList.class deleted file mode 100644 index c5f47f3..0000000 Binary files a/bin/ToDoList.class and /dev/null differ diff --git a/bin/Util/ApiExplorer.class b/bin/Util/ApiExplorer.class new file mode 100644 index 0000000..731d29d Binary files /dev/null and b/bin/Util/ApiExplorer.class differ diff --git a/bin/Util/FineDustExplorer.class b/bin/Util/FineDustExplorer.class new file mode 100644 index 0000000..b0547b4 Binary files /dev/null and b/bin/Util/FineDustExplorer.class differ diff --git a/bin/Util/FineDustParser.class b/bin/Util/FineDustParser.class new file mode 100644 index 0000000..cfd08f7 Binary files /dev/null and b/bin/Util/FineDustParser.class differ diff --git a/bin/Util/ForecastExplorer.class b/bin/Util/ForecastExplorer.class new file mode 100644 index 0000000..930ee75 Binary files /dev/null and b/bin/Util/ForecastExplorer.class differ diff --git a/bin/Util/ForecastMidExplorer.class b/bin/Util/ForecastMidExplorer.class new file mode 100644 index 0000000..10acfdb Binary files /dev/null and b/bin/Util/ForecastMidExplorer.class differ diff --git a/bin/Util/ForecastMidParser.class b/bin/Util/ForecastMidParser.class new file mode 100644 index 0000000..0461d5a Binary files /dev/null and b/bin/Util/ForecastMidParser.class differ diff --git a/bin/Util/ForecastParser.class b/bin/Util/ForecastParser.class new file mode 100644 index 0000000..c704f5e Binary files /dev/null and b/bin/Util/ForecastParser.class differ diff --git a/bin/Util/NewsSAXParser.class b/bin/Util/NewsSAXParser.class new file mode 100644 index 0000000..314be69 Binary files /dev/null and b/bin/Util/NewsSAXParser.class differ diff --git a/bin/myDate.class b/bin/myDate.class deleted file mode 100644 index 7e6845e..0000000 Binary files a/bin/myDate.class and /dev/null differ diff --git a/com.googlecode.json-simple_1.1.1.jar b/com.googlecode.json-simple_1.1.1.jar new file mode 100644 index 0000000..5814b22 Binary files /dev/null and b/com.googlecode.json-simple_1.1.1.jar differ diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..ddc1a96 Binary files /dev/null and b/icon.png differ diff --git a/json-simple.jar b/json-simple.jar new file mode 100644 index 0000000..42ac3d7 Binary files /dev/null and b/json-simple.jar differ diff --git a/resources/background.gif b/resources/background.gif new file mode 100644 index 0000000..f471940 Binary files /dev/null and b/resources/background.gif differ diff --git a/resources/tab.gif b/resources/tab.gif new file mode 100644 index 0000000..1a73a83 Binary files /dev/null and b/resources/tab.gif differ diff --git a/resources/titlebar.gif b/resources/titlebar.gif new file mode 100644 index 0000000..17443b3 Binary files /dev/null and b/resources/titlebar.gif differ diff --git a/resources/titlebar_end.gif b/resources/titlebar_end.gif new file mode 100644 index 0000000..3ad78d4 Binary files /dev/null and b/resources/titlebar_end.gif differ diff --git a/src/ApiExplorer.java b/src/ApiExplorer.java deleted file mode 100644 index f0fef57..0000000 --- a/src/ApiExplorer.java +++ /dev/null @@ -1,15 +0,0 @@ -import java.io.IOException; -import java.util.Calendar; - -public abstract class ApiExplorer { - protected String Baseurl = "http://newsky2.kma.go.kr/service/SecndSrtpdFrcstInfoService2/"; - protected String serviceKey = "bmEl832vF6jbBp3i%2Fux7VvldeJN6gX0YbM67TfhYPwkB%2B5Y0yaYwZ9n6sdz0mHiIIy0UrdvlKF0fulRi0y%2FuhA%3D%3D"; - protected String Space = "ForecastSpaceData"; /* ���׿���URL */ - - void currentTime() { - Calendar cal = Calendar.getInstance(); - } - - public void send() throws IOException { - } -} \ No newline at end of file diff --git a/src/ForecastExplorer.java b/src/ForecastExplorer.java deleted file mode 100644 index ea805d3..0000000 --- a/src/ForecastExplorer.java +++ /dev/null @@ -1,38 +0,0 @@ -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.net.HttpURLConnection; -import java.net.URL; - -public class ForecastExplorer extends ApiExplorer { - public void send() throws IOException { - StringBuilder forecastURL = new StringBuilder(Baseurl + Space); - forecastURL.append("?ServiceKey=" + serviceKey);// URLEncoder.encode(serviceKey,"UTF-8")); - forecastURL.append("&_type=json"); - forecastURL.append("&base_date=20161023" + "&base_time=2000"); - forecastURL.append("&nx=60" + "&ny=127"); - forecastURL.append("&numOfRows=999");/* �˻��Ǽ� */ - forecastURL.append("&pageNo=1"); /* ������ ��ȣ */ - URL forecasturl = new URL(forecastURL.toString()); - HttpURLConnection conn = (HttpURLConnection) forecasturl.openConnection(); - conn.setRequestMethod("GET"); - // conn.setRequestProperty("Content-type", "application/json"); - System.out.println("Response code: " + conn.getResponseCode()); - BufferedReader rd; - if (conn.getResponseCode() >= 200 && conn.getResponseCode() <= 300) { - rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); - } else { - rd = new BufferedReader(new InputStreamReader(conn.getErrorStream())); - } - StringBuilder sb = new StringBuilder(); - String line; - while ((line = rd.readLine()) != null) { - sb.append(line); - } - rd.close(); - // System.out.println(forecasturl); - conn.disconnect(); - System.out.println(sb.toString()); - } - -} diff --git a/src/MainApp.java b/src/MainApp.java deleted file mode 100644 index 507d784..0000000 --- a/src/MainApp.java +++ /dev/null @@ -1,20 +0,0 @@ -import java.io.IOException; - -/** - * Class used to run the ToDoList application - * - * @author Charles Henry - * - */ -public class MainApp { - - public static void main(String[] args) throws IOException { - // ToDoList ToDo1 = new ToDoList(); - // ToDo1.setVisible(true); // Makes the frame visible to the user - // (default - // = false) - ForecastExplorer a = new ForecastExplorer(); - a.send(); - } - -} \ No newline at end of file diff --git a/src/NewsExplorer.java b/src/NewsExplorer.java deleted file mode 100644 index f4f4211..0000000 --- a/src/NewsExplorer.java +++ /dev/null @@ -1,3 +0,0 @@ -public class NewsExplorer extends ApiExplorer { - String str = "http://rss.joins.com/sonagi/joins_sonagi_total_list.xml"; -} diff --git a/src/SubInfo/DrawGraph.java b/src/SubInfo/DrawGraph.java new file mode 100644 index 0000000..3266dde --- /dev/null +++ b/src/SubInfo/DrawGraph.java @@ -0,0 +1,243 @@ +package SubInfo; +import java.awt.BasicStroke; +import java.awt.Color; +import java.awt.FontMetrics; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.Point; +import java.awt.RenderingHints; +import java.awt.Stroke; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import javax.swing.JPanel; + +import Util.ForecastMidParser; + +/**홍대표 + * 주간 날씨의 그래프를 부분을 차지하는 패널이다. + * ForecastMidParser 클래스의 객체를 사용하여 주간 날씨 정보를 받아와서 사용한다. + */ +@SuppressWarnings("serial") +public class DrawGraph extends JPanel { + //주말 날씨의 그래프를 그려주는 패널 클래스 + private int MAX_SCORE ; //자료의 범위 + private static final int BORDER_GAP = 30; // 판넬과의 거리 + private static final Color GRAPH_COLOR = Color.BLACK; //선 색깔 + private static final Color MIN_POINT_COLOR = Color.BLUE; //점 색깔 + private static final Color MAX_POINT_COLOR = Color.RED; //점 색깔 + private static final Stroke GRAPH_STROKE = new BasicStroke(3f); //선 굵기 등 + private static final int GRAPH_POINT_WIDTH = 10; //점 길이 + private int Y_HATCH_CNT; //y축 나눌 수 + private HashMap mapLand; // 날씨 해쉬맵 + private HashMap mapTemp; // 온도 해쉬맵 + private List minTemps = new ArrayList(); //하루의 최저온도 저장 + private List maxTemps = new ArrayList(); //하루의 최고온도 저장 + + private int DataSize = 8; //8일치 정보 (3일 후~ 10일 후 정보가 들어옴) + private String max; //최고 온도 해쉬맵 변수 + private String min; //최저 온도 해쉬맵 변수 + private ForecastMidParser FM; //중기예보 파서 + private int setzero; // 그래프의 중간점을 맞추기 위한 변수 + private int daymaxTemp; // 일주일간의 최대 온도 저장 (그래프 그릴때 쓰임) + private int dayminTemp; // 일주일간의 최소온도 저장(그래프 그릴때 쓰임) + + public DrawGraph(ForecastMidParser FM) { //생성자 + + this.setBackground(Color.WHITE); + this.FM = FM; + + mapLand = FM.getLandHashMap(); //날씨 3~8일까지 오전 오후 날씨 + mapTemp = FM.getTempHashMap(); //온도 (하루1개) + + + + + for (int i = 3; i <= 10; i++) { // 온도 해쉬맵에서 날짜별로 최소,최대온도를 ArrayList에 저장함 + min="taMin"+i; + max="taMax"+i; + minTemps.add(Integer.parseInt(mapTemp.get(min))); + maxTemps.add(Integer.parseInt(mapTemp.get(max))); + } + + + daymaxTemp = -40; //그래프 그릴때 쓰일 일주일간의 최대,최소 온도를 알아냄 + dayminTemp = 50; + + for(int i=3;i<=10;i++){ + min="taMin"+i; + max="taMax"+i; + if(dayminTemp > Integer.parseInt(mapTemp.get(min))){ + dayminTemp =Integer.parseInt(mapTemp.get(min)); + } + if(daymaxTemp < Integer.parseInt(mapTemp.get(max))){ + daymaxTemp = Integer.parseInt(mapTemp.get(max)); + } + } + + if(daymaxTemp>0){ //알아낸 온도를 10도 단위로 끊어서 사용함 + daymaxTemp=(daymaxTemp/10)*10+10; + }else{ + daymaxTemp=(daymaxTemp/10)*10; + } + if(dayminTemp>=0){ + dayminTemp=(dayminTemp/10)*10; + }else{ + dayminTemp=(dayminTemp/10)*10-10; + } + + + MAX_SCORE = daymaxTemp-dayminTemp; // 그래프의 크기 + Y_HATCH_CNT = MAX_SCORE/10; // y축 10도단위 갯수 + + + } + + /* + * 그래프를 그리기 위해 사용한 paintComponent 메소드 + */ + @Override + protected void paintComponent(Graphics g) { + super.paintComponent(g); + Graphics2D g2 = (Graphics2D)g; + g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //화질이 깨끗해짐 + + + double xScale = ((double) getWidth() - 2 * BORDER_GAP) / (DataSize); //x축 기준 크기 + double yScale = ((double) getHeight() - 2 * BORDER_GAP) / (MAX_SCORE - 1); //y축 기준 크기 + + // 일주일의 최소온도에 따라 기준온도점을 정하기 위해 setzero를 설정해줌 + if( dayminTemp < 0 && dayminTemp>=-10){ + setzero=-10; + }else if(dayminTemp<-10 && dayminTemp>=-20){ + setzero=-20; + }else if(dayminTemp<-20 && dayminTemp>=-30){ + setzero=-30; + }else if(dayminTemp>=0 && dayminTemp<10){ + setzero=0; + }else if(dayminTemp>=10 && dayminTemp<20){ + setzero=10; + }else if(dayminTemp>=20 && dayminTemp<30){ + setzero=20; + }else{setzero=0;} + + + + //일별 최소 온도점을 저장하는 minPoints 리스트 + List minPoints = new ArrayList(); + //점들의 x좌표와 y좌표를 설정해서 넣어줌 + for (int i = 0; i < DataSize; i++) { + int x1 = (int) ((i+1) * xScale + BORDER_GAP); + int y1 = (int) ((MAX_SCORE - (minTemps.get(i)-setzero)) * yScale + BORDER_GAP); //30을 더해서 기준점 변경 + minPoints.add(new Point(x1, y1)); + + } + + //일별 최대 온도점을 저장하는 maxPoints 리스트 + List maxPoints = new ArrayList(); + //점들의 x좌표와 y좌표를 설정해서 넣어줌 + for (int i = 0; i < DataSize; i++) { + int x1 = (int) ((i+1) * xScale + BORDER_GAP); + int y1 = (int) ((MAX_SCORE - (maxTemps.get(i)-setzero)) * yScale + BORDER_GAP); //30을 더해서 기준점 변경 + maxPoints.add(new Point(x1, y1)); + int x = minPoints.get(i).x - GRAPH_POINT_WIDTH / 2; + + } + + int var=-setzero/10;//x축과 + // x축과 y축을 그림 + g2.drawLine(BORDER_GAP, getHeight() - BORDER_GAP, BORDER_GAP, BORDER_GAP);//y축 그림 + + g2.drawLine(BORDER_GAP, getHeight() - ((var* (getHeight() - BORDER_GAP * 2)) / Y_HATCH_CNT + BORDER_GAP) + , getWidth() - BORDER_GAP, getHeight() - ((var* (getHeight() - BORDER_GAP * 2)) / Y_HATCH_CNT + BORDER_GAP));//x축 선 + // y축에 마크 생성 + for (int i = 0; i <= Y_HATCH_CNT; i++) { + int x0 = BORDER_GAP; + int x1 = GRAPH_POINT_WIDTH + BORDER_GAP; + int y0 = getHeight() - (((i) * (getHeight() - BORDER_GAP * 2)) / Y_HATCH_CNT + BORDER_GAP); + int y1 = y0; + g2.drawLine(x0, y0, x1, y1); + + + //각 마크별 온도 레이블 배치 + String yLabel = Integer.toString((i+setzero/10)*10); + FontMetrics metrics = g2.getFontMetrics(); + int labelWidth = metrics.stringWidth(yLabel); + g2.drawString(yLabel, x0 - labelWidth - 5, y0); + + if(i==Y_HATCH_CNT){ + g2.drawString("(°C)", x0 - labelWidth - 8, y0+12); + } + + } + + + + // 마찬가지로 x축의 마크를 그려준다 + for (int i = 0; i < DataSize ; i++) { + int x0 = (i + 1) * (getWidth() - BORDER_GAP * 2) / (DataSize) + BORDER_GAP; + int x1 = x0; + int y0 = getHeight() - ( (var* (getHeight() - BORDER_GAP * 2) ) / Y_HATCH_CNT + BORDER_GAP )+GRAPH_POINT_WIDTH; + int y1 = y0 - 2*GRAPH_POINT_WIDTH; + g2.drawLine(x0, y0, x1, y1); + } + + + Stroke oldStroke = g2.getStroke(); + g2.setColor(GRAPH_COLOR); + g2.setStroke(GRAPH_STROKE); + for (int i = 0; i < minPoints.size() - 1; i++) {//최저 기온 그래프의 선 그리기 + int x1 = minPoints.get(i).x; + int y1 = minPoints.get(i).y; + int x2 = minPoints.get(i + 1).x; + int y2 = minPoints.get(i + 1).y; + g2.drawLine(x1, y1, x2, y2); + } + + g2.setStroke(oldStroke); + g2.setColor(MIN_POINT_COLOR); + for (int i = 0; i < minPoints.size(); i++) { //최저 기온 점 그리기 + int x = minPoints.get(i).x - GRAPH_POINT_WIDTH / 2; + int y = minPoints.get(i).y - GRAPH_POINT_WIDTH / 2; + int ovalW = GRAPH_POINT_WIDTH; + int ovalH = GRAPH_POINT_WIDTH; + g2.fillOval(x, y, ovalW, ovalH); + + + + min="taMin"+(i+3); + + String temper = mapTemp.get(min); + g2.drawString(temper, x+3, y-3); + } + + g2.setColor(GRAPH_COLOR); + g2.setStroke(GRAPH_STROKE); + for (int i = 0; i < maxPoints.size() - 1; i++) {//최고 기온 그래프의 선 그리기 + int x1 = maxPoints.get(i).x; + int y1 = maxPoints.get(i).y; + int x2 = maxPoints.get(i + 1).x; + int y2 = maxPoints.get(i + 1).y; + g2.drawLine(x1, y1, x2, y2); + } + + g2.setStroke(oldStroke); + g2.setColor(MAX_POINT_COLOR); + for (int i = 0; i < maxPoints.size(); i++) {//최고 기온 점 그리기 + int x = maxPoints.get(i).x - GRAPH_POINT_WIDTH / 2; + int y = maxPoints.get(i).y - GRAPH_POINT_WIDTH / 2;; + int ovalW = GRAPH_POINT_WIDTH; + int ovalH = GRAPH_POINT_WIDTH; + g2.fillOval(x, y, ovalW, ovalH); + + + max="taMax"+(i+3); + String temper = mapTemp.get(max); + g2.drawString(temper, x+3, y-3); + + } + + } + +} \ No newline at end of file diff --git a/src/SubInfo/LocMetrics.css b/src/SubInfo/LocMetrics.css new file mode 100644 index 0000000..480dcc0 --- /dev/null +++ b/src/SubInfo/LocMetrics.css @@ -0,0 +1 @@ +CAPTION.MYTABLE{background-color:#8080ff;color:white;border-style:solid;border-width:2px;border-color:black;}TABLE.MYTABLE{font-family:arial;font-size:10pt;background-color:#808080;width:800px;border-style:solid;border-color:black;border-width:2px;}TH.MYTABLE{font-size:10pt;color:white;}TR.MYTABLE{}TD.MYTABLE{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:right;}TD.MYTABLEL{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:left;} \ No newline at end of file diff --git a/src/SubInfo/LocMetrics.html b/src/SubInfo/LocMetrics.html new file mode 100644 index 0000000..61c5528 --- /dev/null +++ b/src/SubInfo/LocMetrics.html @@ -0,0 +1 @@ +

Overall
SymbolCountDefinition
Source Files5Source Files
Directories1Directories
LOC985Lines of Code
BLOC126Blank Lines of Code
SLOC-P790Physical Executable Lines of Code
SLOC-L 690Logical Executable Lines of Code
MVG69McCabe VG Complexity
C&SLOC92Code and Comment Lines of Code
CLOC69Comment Only Lines of Code
CWORD593Commentary Words
HCLOC0Header Comment Lines of Code
HCWORD0Header Commentary Words

C:\Users\ByungKyu\Desktop\JDP\src\SubInfo - FOLDERS
FolderFilesLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
Total598579069069126926959300
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo598579069069126926959300

C:\Users\ByungKyu\Desktop\JDP\src\SubInfo - FILES
FileLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\DrawGraph.java2431741531652391721200
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\newsPanel.java16711410062203112200
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\Submain.java513734110744300
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\twodayPanel.java21319115511142288800
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\weekWeather.java311274248352824912800

\ No newline at end of file diff --git a/src/SubInfo/LocMetricsCommentWords.csv b/src/SubInfo/LocMetricsCommentWords.csv new file mode 100644 index 0000000..eb67af8 --- /dev/null +++ b/src/SubInfo/LocMetricsCommentWords.csv @@ -0,0 +1,348 @@ +Word,Count +*,23 +날씨,11 +온도,11 +,10 +설정,9 +파서,6 +뉴스,6 +선,5 +그리기,5 +레이블,5 +보여주는,5 +해쉬맵,5 +점,5 +저장,5 +메소드,5 +주간,4 +오전,4 +정보를,4 +홍대표,4 +오후,4 +그래프를,4 +최저,4 +최고,4 +프레임,4 +그래프의,4 +크기,4 +색깔,4 +패널이다,4 +패널,4 +기온,4 +때,4 +설정해줌,4 +y축,4 +정보,4 +아이콘,4 +변수,4 +셋팅,3 +block,3 +링크,3 +일주일간의,3 +생성하고,3 +흐리고,3 +단어가,3 +Auto-generated,3 +그릴때,3 +체감온도,3 +하루의,3 +catch,3 +날씨를,3 +TODO,3 +있을,3 +비라는,3 +x축,2 +그림,2 +날짜를,2 +맑음,2 +갯수,2 +설정해서,2 +일별,2 +30을,2 +그래프,2 +x좌표와,2 +달린,2 +중기예보,2 +스크롤바,2 +온도점을,2 +dataLength를,2 +더해서,2 +x축과,2 +날씨의,2 +나타내,2 +예보,2 +생성자,2 +정보가,2 +넣어줌,2 +기준점,2 +기준,2 +사용한다,2 +기사,2 +마우스,2 +반환해주는,2 +후,2 +변경,2 +점들의,2 +프레임이다,2 +최대,2 +저장함,2 +위해,2 +사용하여,2 +\날씨,\,2 +온도를,2 +저장하는,2 +패널을,2 +동내,2 +날짜별로,2 +리스트,2 +객체를,2 +y좌표를,2 +쓰임),2 +뉴스파서를,2 +한다,2 +받아와,2 +위치를,1 +알아낸,1 +최소온도,1 +새,1 +3~8일까지,1 +받고,1 +\최소,최대온도를\,1 +간격)로,1 +주말,1 +8~10일,1 +탭에,1 +제목과,1 +저장(그래프,1 +수정,1 +해쉬맵으로,1 +길이만큼,1 +예보)를,1 +자정~,1 +minPoints,1 +수,1 +길이,1 +받아오기,1 +클릭되면,1 +주었다,1 +나눌,1 +아이콘도,1 +수직,1 +시간대가,1 +하나의,1 +y축을,1 +눈이라는,1 +기사를,1 +x축의,1 +바꿔줌,1 +후~,1 +클릭하면,1 +정보와,1 +생성하는,1 +JTextArea의,1 +해당되는,1 +사용한,1 +날짜,1 +등등을,1 +눈과,1 +수직스크롤,1 +파싱된,1 +띄움,1 +깨끗해짐,1 +사용해,1 +이용해서,1 +(아이콘),1 +마크별,1 +달아서,1 +링크를,1 +날씨가,1 +2일간의,1 +링크와,1 +클릭시,1 +10일,1 +날씨(동네,1 +세팅해주는,1 +iDay,1 +일주일의,1 +들어가는,1 +배치,1 +클래스를,1 +데이타,1 +사용자가,1 +날씨만,1 +구름많음,1 +주간날씨보기,1 +보여줌,1 +제목,1 +최소온도에,1 +\온도,\,1 +조절,1 +뉴스제목,1 +@return,1 +기준온도점을,1 +프레임의,1 +rowPanel,1 +보여짐,1 +차지하는,1 +정하기,1 +y축에,1 +3~7일까지는,1 +\,\,1 +반환하는,1 +제목은,1 +동네,1 +마크,1 +붙어있는,1 +있을때,1 +후의,1 +제목을,1 +내용,1 +setzero를,1 +띄워서,1 +검사,1 +들어오는,1 +파서에서,1 +등,1 +10도단위,1 +검사함,1 +눈옴,1 +들어옴),1 +10도,1 +보여준다,1 +오후날씨가,1 +마크를,1 +이틀간의,1 +iterator를,1 +*홍대표,1 +조정,1 +링크가,1 +해쉬맵에서,1 +(하루1개),1 +맞추기,1 +위치,1 +위해),1 +위한,1 +항상,1 +UI,1 +와서,1 +시간대별,1 +거리,1 +생성,1 +따라서,1 +마찬가지로,1 +(그래프,1 +템,1 +8~10일까지는,1 +예보(약,1 +따라,1 +쓰일,1 +똑같이,1 +클래스의,1 +location,1 +불가능하게,1 +준다,1 +날씨),1 +클래스,1 +6시면,1 +표시,1 +추가함으로써,1 +\최대,최소\,1 +최고온도,1 +호출,1 +maxPoints,1 +\오전,\,1 +그려주는,1 +알아냄,1 +그려준다,1 +그렸고,1 +파서를,1 +자세한,1 +열어줌,1 +올렸을때,1 +판넬과의,1 +뉴스),1 +열린다,1 +걸리는,1 +데이터,1 +범위,1 +호환하기,1 +구름만,1 +추가해줌,1 +받아옴),1 +받아서,1 +패널선언,1 +정보갯수,1 +JTBC,1 +\최고,\,1 +다,1 +사용함,1 +3~7일,1 +중간점을,1 +받아온시간,1 +이,1 +받아와서,1 +ArrayList에,1 +화질이,1 +메소드이다,1 +한줄씩,1 +단어가잇을,1 +함,1 +우측,1 +\(날씨,\,1 +JTextArea를,1 +의미하는,1 +없으면,1 +굵기,1 +이틀간,1 +길이에,1 +스트링으로,1 +미리보기,1 +끊어서,1 +DrawGraph,1 +날짜별,1 +구름에,1 +옴,1 +하늘,1 +역할을,1 +paintComponent,1 +계산,1 +기사의,1 +부분을,1 +시간대,1 +시간,1 +상태,1 +구름과,1 +몇일,1 +JTextArea로,1 +사용,1 +날짜의,1 +시간대별(3시간,1 +양에따라,1 +ForecastMidParser,1 +\주간날씨,\,1 +깔끔하게,1 +(3일,1 +자료의,1 +최소,1 +흐림,1 +추가하는,1 +빼줌(파서,1 +구름조금,1 +들어와,1 +안에,1 +1일,1 +최저온도,1 +메인,1 +바뀜,1 +흐리기만함,1 +8일치,1 +눈,비옴,1 +최저기온,1 +비옴,1 +우측에,1 +단위로,1 +MainFrame,1 +하나를,1 +아이콘으로,1 +각,1 +번갈아가면서,1 diff --git a/src/SubInfo/LocMetricsFiles.csv b/src/SubInfo/LocMetricsFiles.csv new file mode 100644 index 0000000..28a8fb8 --- /dev/null +++ b/src/SubInfo/LocMetricsFiles.csv @@ -0,0 +1,6 @@ +File,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\DrawGraph.java,243,174,153,16,52,39,17,212,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\newsPanel.java,167,114,100,6,22,0,31,122,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\Submain.java,51,37,34,1,10,7,4,43,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\twodayPanel.java,213,191,155,11,14,22,8,88,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo\weekWeather.java,311,274,248,35,28,24,9,128,0,0 diff --git a/src/SubInfo/LocMetricsFolders.csv b/src/SubInfo/LocMetricsFolders.csv new file mode 100644 index 0000000..64be689 --- /dev/null +++ b/src/SubInfo/LocMetricsFolders.csv @@ -0,0 +1,3 @@ +Folder,Files,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +Total,5,985,790,690,69,126,92,69,593,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\SubInfo,5,985,790,690,69,126,92,69,593,0,0 diff --git a/src/SubInfo/LocMetricsFunctions.csv b/src/SubInfo/LocMetricsFunctions.csv new file mode 100644 index 0000000..b2cfeab --- /dev/null +++ b/src/SubInfo/LocMetricsFunctions.csv @@ -0,0 +1 @@ +File,Function,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD diff --git a/src/SubInfo/LocMetricsFunctions.html b/src/SubInfo/LocMetricsFunctions.html new file mode 100644 index 0000000..8136cb2 --- /dev/null +++ b/src/SubInfo/LocMetricsFunctions.html @@ -0,0 +1 @@ +
C:\Users\ByungKyu\Desktop\JDP\src\SubInfo - FUNCTIONS
FileFunctionLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORD

\ No newline at end of file diff --git a/src/SubInfo/LocMetricsPie.jpg b/src/SubInfo/LocMetricsPie.jpg new file mode 100644 index 0000000..f8964c9 Binary files /dev/null and b/src/SubInfo/LocMetricsPie.jpg differ diff --git a/src/SubInfo/LocMetricsPie.png b/src/SubInfo/LocMetricsPie.png new file mode 100644 index 0000000..f6a4939 Binary files /dev/null and b/src/SubInfo/LocMetricsPie.png differ diff --git a/src/SubInfo/Submain.java b/src/SubInfo/Submain.java new file mode 100644 index 0000000..268c126 --- /dev/null +++ b/src/SubInfo/Submain.java @@ -0,0 +1,50 @@ +package SubInfo; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Font; + +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JTabbedPane; +/** 홍대표 + * 메인 프레임 우측에 붙어있는 프레임이다. + * 이틀간의 날씨, 주간날씨, 뉴스 정보를 보여주는 역할을 한다. + */ +public class Submain extends JFrame { //MainFrame 우측 프레임 + + private JTabbedPane jtp = new JTabbedPane(); //템 사용 (날씨, 뉴스) + private twodayPanel PN_Weather; //동내 예보 UI 패널 + private newsPanel PN_News = new newsPanel(); //뉴스 기사 패널 + + public Submain(int width, int height) { //생성자 , 프레임의 location 위치를 받아옴) + super("Weather & News"); + PN_Weather = new twodayPanel(); + PN_Weather.setBackground(Color.WHITE); + + PN_News.setBackground(Color.WHITE); + + jtp.addTab("날씨", PN_Weather); + jtp.addTab("뉴스", PN_News); + PN_News.setLayout(null); + JLabel Media = new JLabel(PN_News.news.getTitle().get(0));//JTBC 레이블 + Media.setFont(new Font("맑은 고딕", Font.BOLD, 18)); + int pubDateLength = PN_News.news.getPubDate().length(); + JLabel getDate = new JLabel(PN_News.news.getPubDate().substring(0, pubDateLength-3)+" ");// 정보 받아온시간 레이블 + Media.setBounds(12, 10, 200, 30); + getDate.setBounds(12, 38, 248, 25); + PN_News.add(Media); + PN_News.add(getDate); + + + this.setSize(330,550); + this.setLocation(width, height); + setResizable(false); + getContentPane().add(jtp,BorderLayout.CENTER); + setVisible(true); + + } + public twodayPanel getWeatherPanel(){ + return PN_Weather; + } +} diff --git a/src/SubInfo/newsPanel.java b/src/SubInfo/newsPanel.java new file mode 100644 index 0000000..bfca3e8 --- /dev/null +++ b/src/SubInfo/newsPanel.java @@ -0,0 +1,166 @@ +package SubInfo; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Cursor; +import java.awt.Desktop; +import java.awt.Dimension; +import java.awt.Font; +import java.awt.GridLayout; +import java.awt.SystemColor; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; + +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import javax.xml.parsers.ParserConfigurationException; + +import org.xml.sax.SAXException; + +import Util.NewsSAXParser; +/** 홍대표 + * 뉴스 탭에 들어가는 패널이다. + * 뉴스 파서를 사용해 해쉬맵으로 파싱된 정보를 받아와 사용한다. + * 제목은 링크를 달아서 클릭하면 해당되는 기사의 링크가 열린다. + */ +public class newsPanel extends JPanel{ + //뉴스 파서 + public NewsSAXParser news ; + + private int dataLength ; + //들어오는 데이타 갯수 + private JScrollPane SP_news ; + private JPanel PN_inner ; + + public newsPanel(){ + createNewsParser(); + //뉴스파서를 생성하고 dataLength를 설정해줌 + PN_inner = new JPanel(); + PN_inner.setBounds(10, 70, 300, 410); + PN_inner.setLayout(new BorderLayout()); + SP_news = new JScrollPane(); + SP_news.getVerticalScrollBar().setUnitIncrement(16); + //스크롤바 생성하고 설정해줌 + SP_news.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); + //수직스크롤 항상 띄움 + + PN_inner.add(SP_news,BorderLayout.CENTER); + this.add(PN_inner); + + JPanel PN_borderlaout = new JPanel(); + SP_news.setViewportView(PN_borderlaout); + PN_borderlaout.setLayout(new BorderLayout(0 , 0)); + //이 패널을 추가함으로써 깔끔하게 보여짐 + + JPanel PN_column = new JPanel(); + //날짜별로 한줄씩 패널을 추가하는 수직 패널선언 + PN_borderlaout.add(PN_column, BorderLayout.NORTH); + PN_column.setLayout(new GridLayout(0, 1, 0, 1)); + PN_column.setBackground(Color.gray); + + + this.setLayout(new GridLayout(0,1,1,5)); + + for(int i=1;i 0) { + if (Desktop.isDesktopSupported()) { + Desktop desktop = Desktop.getDesktop(); + try { + URI uri = new URI(link); + desktop.browse(uri); + //링크 열어줌 + } catch (IOException ex) { + ex.printStackTrace(); + } catch (URISyntaxException ex) { + ex.printStackTrace(); + } + } + } + } + }); + return TA_Link; + } + +} diff --git a/src/SubInfo/twodayPanel.java b/src/SubInfo/twodayPanel.java new file mode 100644 index 0000000..1dd877d --- /dev/null +++ b/src/SubInfo/twodayPanel.java @@ -0,0 +1,212 @@ +package SubInfo; + +import java.awt.Color; +import java.awt.Image; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.ArrayList; +import java.util.Iterator; + +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.SwingUtilities; + +import TaskManager.MainFrame; +import Util.ForecastParser; +/** 홍대표 + * 동내 예보(약 2일간의 자세한 날씨) 정보를 보여주는 패널이다. + * 날짜의 시간대별(3시간 간격)로 온도, 날씨, 체감온도 등등을 보여준다. + */ +public class twodayPanel extends JPanel //이틀간 날씨(동네 예보)를 보여주는 패널이다. +{ + private ArrayList dayList = new ArrayList(); + private int daytemplocation; //최고, 최저기온 위치 설정 변수 + private ForecastParser FP; //동네 예보 파서 + + public twodayPanel() + { + FP = MainFrame.getParser(); + for(int i=0;i iter = FP.getMapSpace()[i].keySet().iterator(); //iterator를 이용해서 검사함 + while (iter.hasNext()) //하나의 시간대 정보 검사 + { + String key = (String) iter.next(); + if(key.equals("T3H")) //온도 정보 설정 + { + JLabel LB_label = new JLabel(FP.getMapSpace()[i].get(key)+"°C"); + LB_label.setBounds(200, i*20+50, 30, 15); + add(LB_label); + } + if(key.equals("fcstDate")&&!dayList.contains(FP.getMapSpace()[i].get(key)))// 날짜 설정 + { + int month = Integer.parseInt(FP.getMapSpace()[i].get(key).substring(4, 6));; + int day = Integer.parseInt(FP.getMapSpace()[i].get(key).substring(6, 8)); + + dayList.add(FP.getMapSpace()[i].get(key)); + JLabel LB_label = new JLabel(month+"월 "+day+"일"); + LB_label.setBounds(20, i*20+50, 100, 15); + daytemplocation=(i+1)*20+50; + add(LB_label); + } + + if(key.equals("SKY")) // 하늘 상태 (아이콘) 설정 + { + ImageIcon weatherImg; + Image useImg; + JLabel img; + if(FP.getMapSpace()[i].get(key).equals("1")) //맑음 + { + weatherImg = new ImageIcon("DP_sunny.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get(key).equals("2")) //구름조금 + { + weatherImg = new ImageIcon("DP_lesscloud.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get(key).equals("3")) //구름많음 + { + weatherImg = new ImageIcon("DP_manycloud.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get(key).equals("4")) //흐림 + { + if(FP.getMapSpace()[i].get("PTY").equals("0")) //흐리기만함 + { + weatherImg = new ImageIcon("DP_cloud.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get("PTY").equals("1")) //흐리고 비옴 + { + weatherImg = new ImageIcon("DP_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get("PTY").equals("2")) //흐리고 눈,비옴 + { + weatherImg = new ImageIcon("DP_rain_snow.png"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + }else if(FP.getMapSpace()[i].get("PTY").equals("3")) //흐리고 눈옴 + { + weatherImg = new ImageIcon("DP_snow.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(150, i*20+50, 20, 20); + add(img); + } + } + } + + if(key.equals("fcstTime")) //시간 설정 + { + int hour = Integer.parseInt(FP.getMapSpace()[i].get(key).substring(0, 2)); + + JLabel LB_label = new JLabel(hour+"시"); + LB_label.setBounds(100, i*20+50, 30, 15); + add(LB_label); + } + + if(key.equals("TMN")) //최저 온도 설정 + { + + JLabel LB_label = new JLabel(FP.getMapSpace()[i].get(key)+"°C"); + LB_label.setOpaque(true); + LB_label.setBackground(Color.WHITE); + LB_label.setForeground(Color.BLUE); + LB_label.setBounds(20, daytemplocation, 30, 15); + add(LB_label); + } + if(key.equals("TMX")) //최고 온도 설정 + { + + JLabel LB_label = new JLabel(FP.getMapSpace()[i].get(key)+"°C"); + LB_label.setOpaque(true); + LB_label.setBackground(Color.WHITE); + LB_label.setForeground(Color.RED); + LB_label.setBounds(50, daytemplocation, 30, 15); + add(LB_label); + } + } + JLabel realtemp = new JLabel(calculateSensibleTemp(i)+"°C");//체감온도 설정 + realtemp.setBounds(260, i*20+50, 30, 15); + add(realtemp); + } + JLabel LB_sensibleTemp = new JLabel("체감온도"); + LB_sensibleTemp.setBounds(245, 30, 60, 15); + add(LB_sensibleTemp); + JLabel LB_date = new JLabel("날짜"); + LB_date.setBounds(20, 30, 30, 15); + add(LB_date); + JLabel LB_time = new JLabel("시간"); + LB_time.setBounds(100, 30, 30, 15); + add(LB_time); + JLabel LB_weather = new JLabel("날씨"); + LB_weather.setBounds(150, 30, 30, 15); + add(LB_weather); + JLabel LB_temp = new JLabel("온도"); + LB_temp.setBounds(200, 30, 30, 15); + add(LB_temp); + + setBackground(Color.WHITE); + setLayout(null); + String getYear=Integer.toString(FP.getFE().make_SpaceDate()).substring(0, 4); + String getMonth=Integer.toString(FP.getFE().make_SpaceDate()).substring(4, 6); + String getDay=Integer.toString(FP.getFE().make_SpaceDate()).substring(6); + String getTime=Integer.toString(FP.getFE().make_SpaceTime()/100); + JLabel getDate= new JLabel(getYear+"년 "+getMonth+"월 "+getDay+"일 " + +getTime+"시 정보"); + getDate.setBounds(10, 0, 163, 23); + add(getDate); + JButton button = new JButton("주간날씨보기"); + button.addActionListener(new ActionListener() //주간날씨보기 클릭시 새 프레임 띄워서 보여줌 + { + public void actionPerformed(ActionEvent arg0) + { + new weekWeather(); + } + }); + button.setBounds(178, 0, 113, 23); + add(button); + } + /** + * 체감온도 계산 + * @return + */ + public String calculateSensibleTemp(int index) + { + double v = Double.parseDouble(FP.getMapSpace()[index].get("WSD"))*3.6; + double t = Double.parseDouble(FP.getMapSpace()[index].get("T3H")); + double senTemp = 13.12 + 0.6215*t - 11.37*Math.pow(v,0.16) + 0.3965*Math.pow(v,0.16)*t; + + return Integer.toString((int)senTemp); + } +} diff --git a/src/SubInfo/weekWeather.java b/src/SubInfo/weekWeather.java new file mode 100644 index 0000000..289f2cc --- /dev/null +++ b/src/SubInfo/weekWeather.java @@ -0,0 +1,310 @@ +package SubInfo; + +import java.awt.Color; +import java.awt.Image; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.HashMap; +import java.util.List; + +import javax.swing.ImageIcon; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.SwingUtilities; + +import Util.ForecastMidParser; + + +/** 홍대표 + * 주간 날씨를 보여주는 프레임이다. + * DrawGraph 클래스를 사용하여 그래프를 그렸고 날짜별 날씨를 받아와 나타내 준다. + * 날씨 정보가 스트링으로 들어와 아이콘으로 나타내 주었다. + */ +public class weekWeather extends JFrame { //주간 날씨를 보여주는 프레임 + + private DrawGraph PN_Graph; //그래프 패널 + private ForecastMidParser FM; //중기예보 파서 + private HashMap mapLand; // 온도 해쉬맵 + private List AMweather = new ArrayList(); //오전 날씨 저장 + private List PMweather = new ArrayList(); //오후 날씨 저장 + + public weekWeather(){ + this.setBackground(Color.WHITE); + try { + FM = new ForecastMidParser(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + mapLand=FM.getLandHashMap(); + PN_Graph = new DrawGraph(FM); + PN_Graph.setBounds(12, 10, 371, 268); + PN_Graph.setLayout(null); + + + this.setTitle("주간 날씨"); + getContentPane().setLayout(null); + getContentPane().setBackground(Color.WHITE); + + JLabel LB_AMWeather = new JLabel("오전"); //오전 레이블 + JLabel LB_PMWeather = new JLabel("오후"); // 오후 레이블 + + LB_AMWeather.setBounds(22, 317, 30, 30); + LB_PMWeather.setBounds(22, 357, 30, 30); + + this.setSize(411,441); + getContentPane().add(LB_AMWeather); + getContentPane().add(LB_PMWeather); + getContentPane().add(PN_Graph); + for(int i=0;i<8;i++){ + String afterdays = getDate(i+3); //몇일 후 날짜를 반환해주는 메소드 호출 + int month=Integer.parseInt(afterdays.substring(4, 6)); + int day=Integer.parseInt(afterdays.substring(6, 8)); + JLabel label = new JLabel(month+"/"+day); + label.setBounds(60+40*i, 298, 40, 15); + getContentPane().add(label); + } + String am; + String pm; + String wf; + for (int i = 3; i <= 10; i++) { + if(i<=7){ //3~7일까지는 오전, 오후날씨가 다 옴 + am ="wf"+i+"Am"; + pm ="wf"+i+"Pm"; + AMweather.add(mapLand.get(am)); + PMweather.add(mapLand.get(pm)); + } + else{ //8~10일까지는 하루의 날씨만 와서 저장함 + wf="wf"+i; + AMweather.add(mapLand.get(wf)); + } + + } + + + for(int i=0;i<5;i++){ //3~7일 날씨 아이콘 셋팅 + JLabel AMimg = setweathericon(i, "AM"); + JLabel PMimg = setweathericon(i, "PM"); + AMimg.setBounds(60+40*i, 317, 30, 30); + PMimg.setBounds(60+40*i, 357, 30, 30); + this.add(AMimg); + this.add(PMimg); + } + + + for(int i=5;i<8;i++){ //8~10일 날씨 아이콘 셋팅 + JLabel AMimg = setweathericon(i, "ALL"); + AMimg.setBounds(60+40*i, 337, 30, 30); + this.add(AMimg); + } + + + this.setLocation(1105,93); + + this.setVisible(true); + } + /* + * 날씨 아이콘 세팅해주는 메소드 + */ + public JLabel setweathericon(int i, String Time){ + ImageIcon weatherImg; + Image useImg; + JLabel img; + if(Time.equals("AM")){ //오전 날씨 아이콘 셋팅 + if((AMweather.get(i).contains("구름"))&&(AMweather.get(i).contains("비"))){ //구름과 비라는 단어가잇을 때 + weatherImg = new ImageIcon("DP_cloud_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if((AMweather.get(i).contains("눈"))&&(AMweather.get(i).contains("비"))){//눈과 비라는 단어가 있을때 + weatherImg = new ImageIcon("DP_rain_snow.png"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if((AMweather.get(i).contains("눈"))){ //눈이라는 단어가 있을 때 + weatherImg = new ImageIcon("DP_snow.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + }if(AMweather.get(i).contains("비")){ //비라는 단어가 있을 때 + weatherImg = new ImageIcon("DP_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if((AMweather.get(i).contains("구름"))){ //구름만 있을 때 + if((AMweather.get(i).contains("많음"))){ //구름에 양에따라 + weatherImg = new ImageIcon("DP_manycloud.jpg"); + }else if((AMweather.get(i).contains("조금"))){ + weatherImg = new ImageIcon("DP_lesscloud.jpg"); + }else{ + weatherImg = new ImageIcon("DP_cloud.jpg"); + } + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + }else { //걸리는 날씨가 없으면 맑음 표시 + weatherImg = new ImageIcon("DP_sunny.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + } + + + + }else if(Time.equals("PM")){ //오후 아이콘도 똑같이 한다. + if((PMweather.get(i).contains("구름"))&&(AMweather.get(i).contains("비"))){ + weatherImg = new ImageIcon("DP_cloud_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if((PMweather.get(i).contains("눈"))&&(PMweather.get(i).contains("비"))){ + weatherImg = new ImageIcon("DP_rain_snow.png"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if(PMweather.get(i).contains("비")){ + weatherImg = new ImageIcon("DP_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 357, 30, 30); + return img; + }else if(PMweather.get(i).contains("눈")){ + weatherImg = new ImageIcon("DP_snow.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 357, 30, 30); + return img; + }else if((PMweather.get(i).contains("구름"))){ + if((PMweather.get(i).contains("많음"))){ + weatherImg = new ImageIcon("DP_manycloud.jpg"); + }else if((PMweather.get(i).contains("조금"))){ + weatherImg = new ImageIcon("DP_lesscloud.jpg"); + }else{ + weatherImg = new ImageIcon("DP_cloud.jpg"); + } + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 357, 30, 30); + return img; + }else{ + weatherImg = new ImageIcon("DP_sunny.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + } + }else{ + if((AMweather.get(i).contains("구름"))&&(AMweather.get(i).contains("비"))){ + weatherImg = new ImageIcon("DP_cloud_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + else if((AMweather.get(i).contains("눈"))&&(AMweather.get(i).contains("비"))){ + weatherImg = new ImageIcon("DP_rain_snow.png"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + img.setBounds(60+40*i, 317, 30, 30); + return img; + } + if(AMweather.get(i).contains("비")){ + weatherImg = new ImageIcon("DP_rain.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + }else if((AMweather.get(i).contains("눈"))){ + weatherImg = new ImageIcon("DP_snow.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + }else if((AMweather.get(i).contains("구름"))){ + if((AMweather.get(i).contains("많음"))){ + weatherImg = new ImageIcon("DP_manycloud.jpg"); + }else if((AMweather.get(i).contains("조금"))){ + weatherImg = new ImageIcon("DP_lesscloud.jpg"); + }else{ + weatherImg = new ImageIcon("DP_cloud.jpg"); + } + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + }else{ + weatherImg = new ImageIcon("DP_sunny.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(30, 30, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + return img; + } + + } + } + + + + public static String getDate ( int iDay ) { //iDay 후의 날짜를 반환해주는 메소드 + Calendar temp=Calendar.getInstance ( ); + String inTime = new java.text.SimpleDateFormat("HHmmss").format(new java.util.Date()); + if(Integer.parseInt(inTime)<60000){//시간대가 자정~ 6시면 1일 빼줌(파서 정보와 호환하기 위해) + iDay-=1; + } + temp.add ( Calendar.DAY_OF_MONTH, iDay ); + int nYear = temp.get ( Calendar.YEAR ); + int nMonth = temp.get ( Calendar.MONTH ) + 1; + int nDay = temp.get ( Calendar.DAY_OF_MONTH ); + StringBuffer sbDate=new StringBuffer ( ); + sbDate.append ( nYear ); + if ( nMonth < 10 ) sbDate.append ( "0" ); + sbDate.append ( nMonth ); + if ( nDay < 10 ) sbDate.append ( "0" ); + sbDate.append ( nDay ); + return sbDate.toString ( ); + } +} diff --git a/src/SubwayExplorer.java b/src/SubwayExplorer.java deleted file mode 100644 index 9ef1a14..0000000 --- a/src/SubwayExplorer.java +++ /dev/null @@ -1,3 +0,0 @@ -public class SubwayExplorer { - String str = "http://swopenAPI.seoul.go.kr/api/subway/46626346506775623638434b6c4c67"; -} diff --git a/src/AddWindow.java b/src/TaskManager/AddWindow.java similarity index 53% rename from src/AddWindow.java rename to src/TaskManager/AddWindow.java index cca564f..4dd0fbe 100644 --- a/src/AddWindow.java +++ b/src/TaskManager/AddWindow.java @@ -1,10 +1,15 @@ +package TaskManager; + import java.awt.BorderLayout; +import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; +import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import java.util.Calendar; import javax.swing.JButton; import javax.swing.JComboBox; @@ -13,6 +18,7 @@ import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; +import javax.swing.JRadioButton; /** * Class used to add Task data to the ToDoList @@ -23,16 +29,15 @@ public class AddWindow extends JFrame implements ActionListener{ private static JLabel taskName; private static JLabel startDate; - private static JLabel endDate; + private static JLabel time; private static JLabel priority; - private static JLabel percComp; + private static JLabel field; private static JLabel category; private static JLabel note; private static JTextField taskNameDisplay; private static JPanel startDatePanel; - private static JPanel endDatePanel; + private static JPanel timePanel; private static JComboBox priorityCombo; - private static JTextField percCompDisplay; private static JComboBox categoryCombo; private static JTextField noteDisplay; private static JPanel mainPanel; @@ -43,30 +48,56 @@ public class AddWindow extends JFrame implements ActionListener{ private static JComboBox dayCombo; private static JComboBox monthCombo; private static JComboBox yearCombo; - private static JComboBox endDayCombo; - private static JComboBox endMonthCombo; - private static JComboBox endYearCombo; + private static JComboBox hourCombo; + private static JComboBox minCombo; + + private static JRadioButton insideBtn; + private JRadioButton outdoorBtn; + + private static Calendar cal; private static String[] priorityList = {"Low", "Medium", "High", "Other"}; private static String[] categoryList = {"Personal", "Social", "Business", "School", "Other"}; private static String[] day = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"}; private static String[] month = {"1","2","3","4","5","6","7","8","9","10","11","12"}; - private static String[] year = {"2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020"}; + private static String[] year; + private static String[] hour; + private static String[] min; + private JPanel panel; + /** * Method used to create the Add window */ - AddWindow() + public AddWindow() { - this.setLayout(new BorderLayout()); + int tYear; + + Dimension dimen = Toolkit.getDefaultToolkit().getScreenSize(); + getContentPane().setLayout(new BorderLayout()); this.setTitle("Add Task"); this.setSize(350,220); this.setResizable(false); + this.setLocation((int)dimen.getWidth()/2 - this.getWidth()/2, (int)dimen.getHeight()/2 - this.getHeight()/2); + + cal = Calendar.getInstance(); + year = new String[21]; + for(int i=0; i < 21; i++){ + tYear = cal.get(Calendar.YEAR); + year[i] = Integer.toString(tYear - 10 + i); + } + min = new String[60]; + for(int i = 0; i < 60; i++){ + min[i] = Integer.toString(i); + } + hour = new String[24]; + for(int i = 1; i < 25; i++){ + hour[i-1] = Integer.toString(i); + } taskName = new JLabel("Task Name: "); startDate = new JLabel("Start Date: "); - endDate = new JLabel("End Date: "); + time = new JLabel("Time:"); priority = new JLabel("Priority: "); - percComp = new JLabel("Percent Complete: "); category = new JLabel("Category: "); note = new JLabel("Note: "); taskNameDisplay = new JTextField(""); @@ -74,34 +105,46 @@ public class AddWindow extends JFrame implements ActionListener{ dayCombo = new JComboBox(day); monthCombo = new JComboBox(month); yearCombo = new JComboBox(year); - startDatePanel.add(dayCombo); - startDatePanel.add(monthCombo); startDatePanel.add(yearCombo); + startDatePanel.add(monthCombo); + startDatePanel.add(dayCombo); - endDatePanel = new JPanel(new GridLayout(1,3)); - endDayCombo = new JComboBox(day); - endMonthCombo = new JComboBox(month); - endYearCombo = new JComboBox(year); - endDatePanel.add(endDayCombo); - endDatePanel.add(endMonthCombo); - endDatePanel.add(endYearCombo); + timePanel = new JPanel(new GridLayout(1,3)); + hourCombo = new JComboBox(hour); + minCombo = new JComboBox(min); + timePanel.add(hourCombo); + timePanel.add(minCombo); priorityCombo = new JComboBox(priorityList); - percCompDisplay = new JTextField(""); categoryCombo = new JComboBox(categoryList); noteDisplay = new JTextField(""); mainPanel = new JPanel(new GridLayout(7, 2)); //Create a panel with a grid layout mainPanel.add(taskName); mainPanel.add(taskNameDisplay); mainPanel.add(startDate); mainPanel.add(startDatePanel); - mainPanel.add(endDate); mainPanel.add(endDatePanel); - mainPanel.add(priority); mainPanel.add(priorityCombo); - mainPanel.add(percComp); mainPanel.add(percCompDisplay); + field = new JLabel("Alarm:"); + mainPanel.add(field); + + panel = new JPanel(); + mainPanel.add(panel); + panel.setLayout(null); + + outdoorBtn = new JRadioButton("No"); + outdoorBtn.setBounds(62, 0, 58, 23); + outdoorBtn.setSelected(false); + panel.add(outdoorBtn); + + insideBtn = new JRadioButton("Yes"); + insideBtn.setBounds(0, 0, 58, 23); + insideBtn.setSelected(true); + panel.add(insideBtn); + mainPanel.add(time); mainPanel.add(timePanel); + mainPanel.add(priority); + mainPanel.add(priorityCombo); mainPanel.add(category); mainPanel.add(categoryCombo); mainPanel.add(note); mainPanel.add(noteDisplay); this.getContentPane().add(BorderLayout.CENTER, mainPanel); //Add the panel to the CENTER of the BorderLayout - add = new JButton("Add"); cancel = new JButton("Cancel"); add.addActionListener(this); @@ -115,17 +158,16 @@ public class AddWindow extends JFrame implements ActionListener{ /** * Method used to clear the text fields when the window is closed */ - this.addWindowListener(new WindowAdapter() - { + this.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent we) { clearText(); } }); - clearText(); validate(); } + /** * Method used to reset the window to its default state, empty text fields etc */ @@ -133,16 +175,14 @@ public void clearText() { taskNameDisplay.setText(""); - dayCombo.setSelectedItem("1"); - monthCombo.setSelectedItem("1"); - yearCombo.setSelectedItem("2012"); + dayCombo.setSelectedItem(Integer.toString(cal.get(Calendar.DATE))); + monthCombo.setSelectedItem(Integer.toString(cal.get(Calendar.MONTH) + 1)); + yearCombo.setSelectedItem(Integer.toString(cal.get(Calendar.YEAR))); - endDayCombo.setSelectedItem("1"); - endMonthCombo.setSelectedItem("1"); - endYearCombo.setSelectedItem("2012"); + hourCombo.setSelectedItem(1); + minCombo.setSelectedItem(0); priorityCombo.setSelectedItem("Other"); - percCompDisplay.setText(""); categoryCombo.setSelectedItem("Personal"); noteDisplay.setText(""); } @@ -154,25 +194,37 @@ public void actionPerformed(ActionEvent e) { { try { - if(taskNameDisplay.getText().equals("") || percCompDisplay.getText().equals("") || noteDisplay.getText().equals("")) + if(taskNameDisplay.getText().equals("") || noteDisplay.getText().equals("")) { JOptionPane.showMessageDialog(null, "Please fill in all of the fields."); } - else if(taskNameDisplay.getText().equals("") || Integer.parseInt(percCompDisplay.getText()) < 0 || Integer.parseInt(percCompDisplay.getText()) > 100) + else if(taskNameDisplay.getText().equals("")) { JOptionPane.showMessageDialog(null, "Please fill in a number from '0' to '100' in the percentage field."); } - else if(!(Integer.parseInt(percCompDisplay.getText()) >= 0 || Integer.parseInt(percCompDisplay.getText()) <= 100)) - { - JOptionPane.showMessageDialog(null, "Please fill in a number from '0' to '100' in the percentage field."); + else if (!insideBtn.isSelected() && !outdoorBtn.isSelected()){ + JOptionPane.showMessageDialog(null, "Please check field"); } - else if(Integer.parseInt(percCompDisplay.getText()) >= 0 || Integer.parseInt(percCompDisplay.getText()) <= 100) + else if(outdoorBtn.isSelected()) { ToDoList.myTasks.add(new Task(taskNameDisplay.getText(), - new myDate(Integer.parseInt((String) dayCombo.getSelectedItem()), Integer.parseInt((String) monthCombo.getSelectedItem()), Integer.parseInt((String) yearCombo.getSelectedItem())), - new myDate(Integer.parseInt((String) endDayCombo.getSelectedItem()), Integer.parseInt((String) endMonthCombo.getSelectedItem()), Integer.parseInt((String) endYearCombo.getSelectedItem())), - (String) priorityCombo.getSelectedItem(), Integer.parseInt(percCompDisplay.getText()), (String) categoryCombo.getSelectedItem(), noteDisplay.getText())); + new myDate(Integer.parseInt((String) yearCombo.getSelectedItem()), Integer.parseInt((String) monthCombo.getSelectedItem()), Integer.parseInt((String) dayCombo.getSelectedItem()), + Integer.parseInt((String) hourCombo.getSelectedItem()), Integer.parseInt((String) minCombo.getSelectedItem())), + (String) priorityCombo.getSelectedItem(), true, (String) categoryCombo.getSelectedItem(), noteDisplay.getText())); ToDoList.listModel.addElement(ToDoList.myTasks.get(ToDoList.myTasks.size()-1).getName()); + TaskPanel.listModel.addElement(ToDoList.myTasks.get(ToDoList.myTasks.size()-1).getName()); + clearText(); + ToDoList.add1.setVisible(false); + ToDoList.exported = false; + JOptionPane.showMessageDialog(null, "Task Added."); + } + else if(insideBtn.isSelected()){ + ToDoList.myTasks.add(new Task(taskNameDisplay.getText(), + new myDate(Integer.parseInt((String) yearCombo.getSelectedItem()), Integer.parseInt((String) monthCombo.getSelectedItem()), Integer.parseInt((String) dayCombo.getSelectedItem()), + Integer.parseInt((String) hourCombo.getSelectedItem()), Integer.parseInt((String) minCombo.getSelectedItem())), + (String) priorityCombo.getSelectedItem(), false, (String) categoryCombo.getSelectedItem(), noteDisplay.getText())); + ToDoList.listModel.addElement(ToDoList.myTasks.get(ToDoList.myTasks.size()-1).getName()); + TaskPanel.listModel.addElement(ToDoList.myTasks.get(ToDoList.myTasks.size()-1).getName()); clearText(); ToDoList.add1.setVisible(false); ToDoList.exported = false; @@ -181,7 +233,7 @@ else if(Integer.parseInt(percCompDisplay.getText()) >= 0 || Integer.parseInt(per } catch(NumberFormatException n) { - JOptionPane.showMessageDialog(null, "Please fill in a number from '0' to '100' in the percentage field."); + JOptionPane.showMessageDialog(null, "Please fill field."); } } if(e.getSource() == cancel) @@ -190,5 +242,4 @@ else if(Integer.parseInt(percCompDisplay.getText()) >= 0 || Integer.parseInt(per ToDoList.add1.setVisible(false); } } - } \ No newline at end of file diff --git a/src/TaskManager/AlarmFrame.java b/src/TaskManager/AlarmFrame.java new file mode 100644 index 0000000..a42c0a0 --- /dev/null +++ b/src/TaskManager/AlarmFrame.java @@ -0,0 +1,46 @@ +package TaskManager; + +import javax.swing.JFrame; +import javax.swing.JLabel; +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.Toolkit; + +public class AlarmFrame extends JFrame{ + /* + * 알람 frame + */ + public AlarmFrame(int indexOfTasks) { + Task task=ToDoList.myTasks.get(indexOfTasks); + this.setTitle(task.getName()); + this.setVisible(true); + setSize(332,481); //사이즈 정의 + Dimension dimen = Toolkit.getDefaultToolkit().getScreenSize(); + setLocation((int)dimen.getWidth()/2 - this.getWidth()/2 - 100 , (int)dimen.getHeight()/2 - this.getHeight()/2);//켜졌을때의 프레임의 위치 + setResizable(false);//크기조정 불가 + getContentPane().setLayout(null); + + JLabel lblCat = new JLabel("Catergory : " + task.getCategory()); + lblCat.setBounds(100, 50, 200, 18); + getContentPane().add(lblCat); + JLabel lblField = new JLabel("Field : "+task.getField()); + lblField.setBounds(100, 150, 200, 18); + getContentPane().add(lblField); + + JLabel lblName = new JLabel("Name : "+task.getName()); + lblName.setBounds(100, 100, 200, 18); + getContentPane().add(lblName); + + JLabel lblNote = new JLabel("Note : "+ task.getNote()); + lblNote.setBounds(100, 200, 200, 18); + getContentPane().add(lblNote); + + JLabel lblPrio = new JLabel("Priority : " + task.getPriority()); + lblPrio.setBounds(100, 250, 200, 18); + getContentPane().add(lblPrio); + + JLabel lblStart = new JLabel("Start Date : "+task.getStartDate().toString()); + lblStart.setBounds(100, 300, 200, 18); + getContentPane().add(lblStart); + } +} \ No newline at end of file diff --git a/src/TaskManager/CalendarPanel.java b/src/TaskManager/CalendarPanel.java new file mode 100644 index 0000000..2f1098f --- /dev/null +++ b/src/TaskManager/CalendarPanel.java @@ -0,0 +1,234 @@ +package TaskManager; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Font; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.awt.event.MouseWheelEvent; +import java.awt.event.MouseWheelListener; +import java.util.Calendar; + +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JTable; +import javax.swing.SwingConstants; +import javax.swing.border.EmptyBorder; +import javax.swing.border.LineBorder; +import javax.swing.table.DefaultTableCellRenderer; +import javax.swing.table.DefaultTableModel; + +public class CalendarPanel extends JPanel implements ActionListener, MouseWheelListener { + //field + private static final long serialVersionUID = 1L; + private static Calendar calendar; + private JLabel label; + private JPanel pn_month; + private JTable tb_dateView; + private JTable tb_weekLabel; + private JButton btn_leftShift; + private JButton btn_rightShift; + private JButton btn_todayShift; + private DefaultTableModel dtm_weekTable; + private DefaultTableModel dtm_dateTable; + private String[] weekColumn = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; + private String date; + //method + public CalendarPanel(){ + + calendar = Calendar.getInstance(); + label = new JLabel(); + pn_month = new JPanel(new BorderLayout()); + dtm_weekTable = new DefaultTableModel(0,7); + dtm_dateTable = new DefaultTableModel(6,7); + + setLayout(new BorderLayout()); + setBackground(Color.white); + label = new JLabel(""); + label.setHorizontalAlignment(SwingConstants.CENTER); + label.setFont(new Font("맑은 고딕", Font.BOLD, 20)); + label.setBounds(70, 10, 384, 54); + + pn_month.setBackground(Color.WHITE); + pn_month.add(label,BorderLayout.CENTER); + + + btn_leftShift = new JButton("<"); + btn_leftShift.setBackground(Color.WHITE); + btn_leftShift.setFont(new Font("맑은 고딕", Font.BOLD, 20)); + btn_leftShift.setBorder(new EmptyBorder(5,5,5,5)); + btn_leftShift.addActionListener(this); + + btn_rightShift = new JButton(">"); + btn_rightShift.setBackground(Color.WHITE); + btn_rightShift.setFont(new Font("맑은 고딕", Font.BOLD, 20)); + btn_rightShift.setBorder(new EmptyBorder(5,5,5,5)); + btn_rightShift.addActionListener(this); + + btn_todayShift = new JButton("Today"); + btn_todayShift.setBackground(Color.WHITE); + btn_todayShift.setBorder(new EmptyBorder(5,5,5,5)); + btn_todayShift.setFont(new Font("맑은 고딕", Font.BOLD, 10)); + btn_todayShift.addActionListener(this); + + pn_month.add(btn_leftShift, BorderLayout.WEST); + pn_month.add(btn_rightShift,BorderLayout.EAST); + pn_month.add(btn_todayShift, BorderLayout.SOUTH); + + tb_dateView = new JTable(dtm_dateTable) { + private static final long serialVersionUID = 1L; + + public boolean isCellEditable(int row, int column) { + return false; + }; + + }; + setFont(new Font("맑은 고딕",Font.PLAIN,12)); + + DefaultTableCellRenderer center = new DefaultTableCellRenderer(); + center.setHorizontalAlignment(JLabel.CENTER); + + DefaultTableCellRenderer sunRed = new DefaultTableCellRenderer(); + sunRed.setForeground(Color.RED); + sunRed.setHorizontalAlignment(JLabel.CENTER); + DefaultTableCellRenderer satBlue = new DefaultTableCellRenderer(); + satBlue.setForeground(Color.BLUE); + satBlue.setHorizontalAlignment(JLabel.CENTER); + DefaultTableCellRenderer sunDateRed = new DefaultTableCellRenderer(); + sunDateRed.setForeground(Color.RED); + sunDateRed.setVerticalAlignment(SwingConstants.TOP); + DefaultTableCellRenderer satDateBlue = new DefaultTableCellRenderer(); + satDateBlue.setForeground(Color.BLUE); + satDateBlue.setVerticalAlignment(SwingConstants.TOP); + DefaultTableCellRenderer top = new DefaultTableCellRenderer(); + top.setVerticalAlignment(SwingConstants.TOP); + + dtm_weekTable.addRow(weekColumn); + + tb_weekLabel = new JTable(dtm_weekTable); + tb_weekLabel.setEnabled(false); + tb_weekLabel.setRowSelectionAllowed(false); + tb_weekLabel.setFont(new Font("맑은 고딕", Font.BOLD, 12)); + tb_weekLabel.setBackground(Color.WHITE); + tb_weekLabel.setRowHeight(25); + tb_weekLabel.setFillsViewportHeight(true); + tb_weekLabel.setBorder(new LineBorder(new Color(0, 0, 0))); + tb_weekLabel.setBounds(12, 85, 500, 23); + + tb_weekLabel.getColumnModel().getColumn(1).setCellRenderer(center); + tb_weekLabel.getColumnModel().getColumn(2).setCellRenderer(center); + tb_weekLabel.getColumnModel().getColumn(3).setCellRenderer(center); + tb_weekLabel.getColumnModel().getColumn(4).setCellRenderer(center); + tb_weekLabel.getColumnModel().getColumn(5).setCellRenderer(center); + tb_weekLabel.getColumnModel().getColumn(0).setCellRenderer(sunRed); + tb_weekLabel.getColumnModel().getColumn(6).setCellRenderer(satBlue); + + tb_dateView.setCellSelectionEnabled(true); + tb_dateView.setColumnSelectionAllowed(true); + //mouselistener 추가 + tb_dateView.addMouseListener(new MouseAdapter() { + @Override + //일정 추가 될 경우 *표시 + public void mouseClicked(MouseEvent e) { + if(dtm_dateTable.getValueAt(tb_dateView.getSelectedRow(), tb_dateView.getSelectedColumn()).toString().indexOf("*") != -1){ + date = dtm_dateTable.getValueAt(tb_dateView.getSelectedRow(), tb_dateView.getSelectedColumn()).toString().replace("*", " "); + TaskPanel.showTask(Integer.parseInt(date.trim()), calendar.get(Calendar.MONTH) + 1, calendar.get(Calendar.YEAR)); + } + } + }); + tb_dateView.addMouseWheelListener(this); + tb_dateView.setFont(new Font("맑은 고딕", Font.PLAIN, 12)); + tb_dateView.setBorder(new LineBorder(new Color(0, 0, 0))); + tb_dateView.setRowHeight(60); + tb_dateView.setFillsViewportHeight(true); + tb_dateView.setBounds(12, 107, 500, 360); + tb_dateView.getColumnModel().getColumn(0).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(1).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(2).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(3).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(4).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(5).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(6).setCellRenderer(top); + tb_dateView.getColumnModel().getColumn(0).setCellRenderer(sunDateRed); + tb_dateView.getColumnModel().getColumn(6).setCellRenderer(satDateBlue); + + add(tb_weekLabel,BorderLayout.CENTER); + add(tb_dateView,BorderLayout.SOUTH); + add(pn_month, BorderLayout.NORTH); + + } + //오늘 날짜를 반환하는 메소드 + public static Calendar getToday(){ + calendar = Calendar.getInstance(); + return calendar; + } + //일정이 해당하는 날짜에 존재하는지 확인하는 메소드 + boolean isTaskExist(int day){ + int i; + for(i = 0; i 100) + else if(taskNameDisplay.getText().equals("")) { JOptionPane.showMessageDialog(null, "Please fill in a number from '0' to '100' in the percentage field."); } + else if (!insideBtn.isSelected() && !outdoorBtn.isSelected()){ + JOptionPane.showMessageDialog(null, "Please check field"); + } else { ToDoList.myTasks.get(ToDoList.currentEditIndex).setName(taskNameDisplay.getText()); - ToDoList.myTasks.get(ToDoList.currentEditIndex).setStartDate(new myDate(Integer.parseInt((String) dayCombo.getSelectedItem()), Integer.parseInt((String) monthCombo.getSelectedItem()), Integer.parseInt((String) yearCombo.getSelectedItem()))); - ToDoList.myTasks.get(ToDoList.currentEditIndex).setEndDate(new myDate(Integer.parseInt((String) endDayCombo.getSelectedItem()), Integer.parseInt((String) endMonthCombo.getSelectedItem()), Integer.parseInt((String) endYearCombo.getSelectedItem()))); + ToDoList.myTasks.get(ToDoList.currentEditIndex).setStartDate(new myDate(Integer.parseInt((String) yearCombo.getSelectedItem()), Integer.parseInt((String) monthCombo.getSelectedItem()), + Integer.parseInt((String) dayCombo.getSelectedItem()),Integer.parseInt((String) hourCombo.getSelectedItem()), Integer.parseInt((String) minCombo.getSelectedItem()))); ToDoList.myTasks.get(ToDoList.currentEditIndex).setPriority((String) priorityCombo.getSelectedItem()); - ToDoList.myTasks.get(ToDoList.currentEditIndex).setPercentComplete(Integer.parseInt(percCompDisplay.getText())); + if(outdoorBtn.isSelected()) + ToDoList.myTasks.get(ToDoList.currentEditIndex).setField(true); + else + ToDoList.myTasks.get(ToDoList.currentEditIndex).setField(false); ToDoList.myTasks.get(ToDoList.currentEditIndex).setCategory((String) categoryCombo.getSelectedItem()); ToDoList.myTasks.get(ToDoList.currentEditIndex).setNote(noteDisplay.getText()); @@ -184,7 +238,7 @@ else if(taskNameDisplay.getText().equals("") || Integer.parseInt(percCompDisplay } catch(NumberFormatException n) { - JOptionPane.showMessageDialog(null, "Please fill in a number from '0' to '100' in the percentage field."); + JOptionPane.showMessageDialog(null, "Please fill field."); } } if(e.getSource() == cancel) @@ -192,9 +246,5 @@ else if(taskNameDisplay.getText().equals("") || Integer.parseInt(percCompDisplay ToDoList.listenerOn = true; ToDoList.edit1.setVisible(false); } - } - - - - + } } diff --git a/src/FilterWindow.java b/src/TaskManager/FilterWindow.java similarity index 98% rename from src/FilterWindow.java rename to src/TaskManager/FilterWindow.java index 53bb83a..66fafe1 100644 --- a/src/FilterWindow.java +++ b/src/TaskManager/FilterWindow.java @@ -1,3 +1,5 @@ +package TaskManager; + import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; @@ -18,6 +20,10 @@ */ public class FilterWindow extends JFrame implements ActionListener{ + /** + * + */ + private static final long serialVersionUID = 1L; private static JPanel mainPanel; private static JPanel upperPanel; private static JPanel lowerPanel; @@ -194,8 +200,4 @@ else if(filterCombo.getSelectedIndex() == 2) } } } - - - - } diff --git a/src/TaskManager/LocMetrics.css b/src/TaskManager/LocMetrics.css new file mode 100644 index 0000000..480dcc0 --- /dev/null +++ b/src/TaskManager/LocMetrics.css @@ -0,0 +1 @@ +CAPTION.MYTABLE{background-color:#8080ff;color:white;border-style:solid;border-width:2px;border-color:black;}TABLE.MYTABLE{font-family:arial;font-size:10pt;background-color:#808080;width:800px;border-style:solid;border-color:black;border-width:2px;}TH.MYTABLE{font-size:10pt;color:white;}TR.MYTABLE{}TD.MYTABLE{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:right;}TD.MYTABLEL{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:left;} \ No newline at end of file diff --git a/src/TaskManager/LocMetrics.html b/src/TaskManager/LocMetrics.html new file mode 100644 index 0000000..4de4792 --- /dev/null +++ b/src/TaskManager/LocMetrics.html @@ -0,0 +1 @@ +

Overall
SymbolCountDefinition
Source Files16Source Files
Directories1Directories
LOC2446Lines of Code
BLOC215Blank Lines of Code
SLOC-P1959Physical Executable Lines of Code
SLOC-L 1617Logical Executable Lines of Code
MVG124McCabe VG Complexity
C&SLOC70Code and Comment Lines of Code
CLOC272Comment Only Lines of Code
CWORD1559Commentary Words
HCLOC0Header Comment Lines of Code
HCWORD0Header Commentary Words

C:\Users\ByungKyu\Desktop\JDP\src\TaskManager - FOLDERS
FolderFilesLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
Total1624461959161712421570272155900
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager1624461959161712421570272155900

C:\Users\ByungKyu\Desktop\JDP\src\TaskManager - FILES
FileLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AddWindow.java2452031746253179300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AlarmFrame.java46363407331100
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\CalendarPanel.java2352021751826072200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ContentPanel.java46343111002200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\EditWindow.java25120317583041810100
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\FilterWindow.java204162119131532710600
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MainFrame.java1771531311115595300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MenuBar.java7160502902200
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\myDate.java9452377303917800
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\Task.java14571508806627400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskAlarm.java201290503500
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskManager.java8640200000
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskPanel.java1301169359251400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TodayScheduleFrame.java1841641391396114400
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ToDoList.java4283442722034445062300
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\WeatherPanel.java1621411241280133100

\ No newline at end of file diff --git a/src/TaskManager/LocMetricsCommentWords.csv b/src/TaskManager/LocMetricsCommentWords.csv new file mode 100644 index 0000000..dbf8899 --- /dev/null +++ b/src/TaskManager/LocMetricsCommentWords.csv @@ -0,0 +1,344 @@ +Word,Count +*,159 +the,149 +to,82 +,55 +used,52 +task,46 +Method,38 +of,34 +a,26 +@param,21 +this,15 +instance,15 +window,14 +panel,13 +task's,13 +set,13 +@return,12 +JList,12 +and,12 +category,11 +data,11 +tasks,11 +return,10 +Add,10 +date,10 +add,10 +array,9 +text,9 +create,8 +new,8 +been,8 +display,8 +메소드,8 +on,8 +method,8 +BorderLayout,8 +year,7 +Charles,7 +index,7 +month,7 +day,7 +field,7 +from,7 +with,7 +출력,7 +file,7 +@author,7 +priority,6 +Henry,6 +selected,6 +in,6 +user,6 +filter,6 +name,6 +details,6 +has,6 +exported,6 +추가,6 +Task,6 +for,6 +it,5 +notes,5 +when,5 +생성,5 +layout,5 +Create,5 +is,5 +if,5 +start,5 +출력하는,5 +notify,5 +be,4 +list,4 +Class,4 +show,4 +SOUTH,4 +store,4 +listener,4 +representation,4 +grid,4 +track,4 +saved,4 +performed,4 +bar,4 +not,4 +menubar,4 +export,3 +DO,3 +into,3 +empty,3 +can,3 +as,3 +edit,3 +button,3 +have,3 +fields,3 +make,3 +actions,3 +string,3 +item,3 +editing,3 +closed,3 +일정,3 +open,3 +reset,3 +information,3 +NOTHING,3 +CENTER,3 +Makes,2 +Menu,2 +while,2 +turn,2 +class,2 +changed,2 +스트림,2 +close,2 +populate,2 +chosen,2 +File,2 +A,2 +textual,2 +count,2 +loop,2 +false,2 +cannot,2 +action,2 +Input,2 +체감온도,2 +etc,2 +items,2 +input,2 +사이즈,2 +menu,2 +미세먼지,2 +through,2 +disable,2 +update,2 +remove,2 +adding,2 +exporting,2 +불가,2 +스크롤,2 +true,2 +위치,2 +켜졌을때의,2 +명언을,2 +buttons,2 +알람,2 +output,2 +clear,2 +크기조정,2 +정의,2 +프레임의,2 +manage,2 +ToDoList,2 +program,2 +import,2 +확인하는,2 +정보,2 +current,2 +end,1 +\"\�"\\,1 +one,1 +일정이,1 +endDate,1 +Listener,1 +there,1 +normal,1 +menu...),1 +variables,1 +at,1 +out,1 +해당하는,1 +변수,1 +ActionListener,1 +default,1 +오늘의,1 +listenrOn,1 +보이도록,1 +Attaches,1 +changes,1 +Objects,1 +properly,1 +based,1 +enable,1 +날씨,1 +off,1 +EditWindow,1 +반환하는,1 +존재하는지,1 +close),1 +Labels,1 +'t',1 +@ToDoList.java,1 +'i',1 +labels,1 +Changes,1 +management,1 +modifiying,1 +visible,1 +sure,1 +param,1 +mouselistener,1 +found,1 +버퍼,1 +TaskList,1 +increment,1 +drop,1 +startDate,1 +files,1 +named,1 +영어인지,1 +*표시,1 +날짜를,1 +통한,1 +랜덤하게,1 +Used,1 +how,1 +no,1 +읽어들일,1 +함수,1 +오늘,1 +scrollPane,1 +extract,1 +completed,1 +same,1 +counter,1 +1.00,1 +(menubar1),1 +따라,1 +=,1 +(correlates,1 +\JList,\,1 +color,1 +boolean,1 +정보를,1 +TODO,1 +2011/04/02,1 +block,1 +JListListener,1 +현재,1 +differentiate,1 +Tasks,1 +날짜에,1 +info,1 +\state,\,1 +prevent,1 +이미지,1 +copy,1 +@,1 +only,1 +down,1 +array),1 +명언,1 +Disable,1 +exportText,1 +위쪽에,1 +percComp,1 +noneditable,1 +@version,1 +\created,\,1 +경우,1 +date=,1 +frame,1 +ListListener,1 +가져오는,1 +일정을,1 +Auto-generated,1 +listListener,1 +titles,1 +actionlistener,1 +options,1 +Date,1 +monitor,1 +날짜,1 +실행,1 +기온과,1 +(now,1 +기본,1 +using,1 +so,1 +tree,1 +do,1 +설정,1 +달력을,1 +simple,1 +you,1 +startup,1 +errors,1 +경로,1 +Buttons,1 +Constructor,1 +상태에,1 +중앙에,1 +its,1 +upon,1 +objects,1 +generic,1 +whether,1 +계산,1 +back,1 +\found,\,1 +within,1 +percentage,1 +-,1 +note,1 +\Date(temp.getStartDate().getYear(),temp.getStartDate().getMonth(),temp.getStartDate().getDay(),temp.getStartDate().getHour(),temp.getStartDate().getMin());\,1 +Manager,1 +ended,1 +formatted,1 +예보,1 +stub,1 +농도를,1 +between,1 +or,1 +임시,1 +white,1 +content,1 +take,1 +Java,1 +many,1 +버퍼로,1 +option,1 +act,1 +될,1 +each,1 +panel에,1 +up,1 +메뉴,1 +modifying,1 +selection,1 +use,1 +printWriter,1 +creates,1 +EAST,1 +생성자,1 +flow,1 +that,1 +Make,1 +(tasks,1 +10줄까지만,1 +\selected,\,1 +SKY의,1 diff --git a/src/TaskManager/LocMetricsFiles.csv b/src/TaskManager/LocMetricsFiles.csv new file mode 100644 index 0000000..9b1a479 --- /dev/null +++ b/src/TaskManager/LocMetricsFiles.csv @@ -0,0 +1,17 @@ +File,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AddWindow.java,245,203,174,6,25,3,17,93,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\AlarmFrame.java,46,36,34,0,7,3,3,11,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\CalendarPanel.java,235,202,175,18,26,0,7,22,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ContentPanel.java,46,34,31,1,10,0,2,2,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\EditWindow.java,251,203,175,8,30,4,18,101,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\FilterWindow.java,204,162,119,13,15,3,27,106,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MainFrame.java,177,153,131,11,15,5,9,53,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\MenuBar.java,71,60,50,2,9,0,2,2,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\myDate.java,94,52,37,7,3,0,39,178,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\Task.java,145,71,50,8,8,0,66,274,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskAlarm.java,20,12,9,0,5,0,3,5,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskManager.java,8,6,4,0,2,0,0,0,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TaskPanel.java,130,116,93,5,9,2,5,14,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\TodayScheduleFrame.java,184,164,139,13,9,6,11,44,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\ToDoList.java,428,344,272,20,34,44,50,623,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager\WeatherPanel.java,162,141,124,12,8,0,13,31,0,0 diff --git a/src/TaskManager/LocMetricsFolders.csv b/src/TaskManager/LocMetricsFolders.csv new file mode 100644 index 0000000..d574522 --- /dev/null +++ b/src/TaskManager/LocMetricsFolders.csv @@ -0,0 +1,3 @@ +Folder,Files,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +Total,16,2446,1959,1617,124,215,70,272,1559,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\TaskManager,16,2446,1959,1617,124,215,70,272,1559,0,0 diff --git a/src/TaskManager/LocMetricsFunctions.csv b/src/TaskManager/LocMetricsFunctions.csv new file mode 100644 index 0000000..b2cfeab --- /dev/null +++ b/src/TaskManager/LocMetricsFunctions.csv @@ -0,0 +1 @@ +File,Function,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD diff --git a/src/TaskManager/LocMetricsFunctions.html b/src/TaskManager/LocMetricsFunctions.html new file mode 100644 index 0000000..de3c3cf --- /dev/null +++ b/src/TaskManager/LocMetricsFunctions.html @@ -0,0 +1 @@ +
C:\Users\ByungKyu\Desktop\JDP\src\TaskManager - FUNCTIONS
FileFunctionLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORD

\ No newline at end of file diff --git a/src/TaskManager/LocMetricsPie.jpg b/src/TaskManager/LocMetricsPie.jpg new file mode 100644 index 0000000..89a2d77 Binary files /dev/null and b/src/TaskManager/LocMetricsPie.jpg differ diff --git a/src/TaskManager/LocMetricsPie.png b/src/TaskManager/LocMetricsPie.png new file mode 100644 index 0000000..ccd3f8a Binary files /dev/null and b/src/TaskManager/LocMetricsPie.png differ diff --git a/src/TaskManager/MainFrame.java b/src/TaskManager/MainFrame.java new file mode 100644 index 0000000..a18113e --- /dev/null +++ b/src/TaskManager/MainFrame.java @@ -0,0 +1,178 @@ +package TaskManager; + +import java.awt.AWTException; +import java.awt.Dimension; +import java.awt.Image; +import java.awt.MenuItem; +import java.awt.PopupMenu; +import java.awt.SystemTray; +import java.awt.Toolkit; +import java.awt.TrayIcon; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.awt.image.BufferedImage; +import java.io.File; +import java.io.IOException; +import java.util.Calendar; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Timer; +import java.util.Vector; + +import javax.imageio.ImageIO; +import javax.swing.JFrame; +import javax.xml.parsers.ParserConfigurationException; + +import org.json.simple.parser.ParseException; + +import SubInfo.Submain; +import Util.FineDustParser; +import Util.ForecastParser; + +public class MainFrame extends JFrame implements ActionListener{ + //field + private static HashMap mapGrib; + private static HashMap mapFnDst; + private static ForecastParser forecastParser; + private static FineDustParser fineDustParser; + static boolean subison = false; + private BufferedImage BI=null; + private MenuBar menu; + private ContentPanel content; + static Submain smain; + private PopupMenu popup; + private MenuItem MIRestore; + private MenuItem MIExit; + private TrayIcon trayIcon; + private SystemTray tray; + private Vector timerVector; + private boolean isOpenwWeather = false; + protected static int x, y; + //method + public MainFrame(){ + super("Task Manager"); + Image image = Toolkit.getDefaultToolkit().getImage("sunny.gif"); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + setSize(850,550); //사이즈 정의 + Dimension dimen = Toolkit.getDefaultToolkit().getScreenSize(); + x = (int)dimen.getWidth()/2 - this.getWidth()/2 - 100 ; + y = (int)dimen.getHeight()/2 - this.getHeight()/2; + setLocation(x, y);//켜졌을때의 프레임의 위치 + setResizable(false);//크기조정 불가 + try { + BI=ImageIO.read(new File("icon.png")); + } catch (IOException e1) { + e1.printStackTrace(); + } + timerVector=new Vector(); + popup=new PopupMenu(); + MIExit=new MenuItem("Exit"); + MIExit.addActionListener(this); + MIRestore = new MenuItem("Restore"); + MIRestore.addActionListener(this); + popup.add(MIRestore); + popup.add(MIExit); + if(BI!=null) trayIcon = new TrayIcon(BI,"Icon",popup); + if(SystemTray.isSupported()&&trayIcon!=null){ + tray=SystemTray.getSystemTray(); + try { + tray.add(trayIcon); + } catch (AWTException e) { + e.printStackTrace(); + } + } + try { + forecastParser = new ForecastParser(); + } catch (IOException e) { + e.printStackTrace(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + fineDustParser = new FineDustParser(); + mapGrib = forecastParser.getGribHashMap(); + mapFnDst = fineDustParser.getFnDstHashMap(); + subison = true; + + menu = new MenuBar(); + content = new ContentPanel(); + super.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); + setJMenuBar(menu); //위쪽에 메뉴 추가 + add(content); //중앙에 content 추가 + + smain = new Submain((int)dimen.getWidth()/2 - this.getWidth()/2 + 745, (int)dimen.getHeight()/2 - this.getHeight()/2); + setVisible(true); + + //export tasks on close + addWindowListener(new WindowAdapter(){ + /** + * Method used to export tasks when the program is closed + * + * @ param exported boolean used to show whether the tasks have been saved of not + */ + public void windowClosing(WindowEvent we) + { + we.getWindow().setVisible(false); + smain.setVisible(false); + if(smain.getWeatherPanel().isVisible()) + isOpenwWeather=true; + else + isOpenwWeather=false; + smain.getWeatherPanel().setVisible(false); + } + }); + alarm(); + } + + static public HashMap getWeather(){ + return mapGrib; + } + + static public HashMap getFineDust(){ + return mapFnDst; + } + + static public ForecastParser getParser(){ + return forecastParser; + } + + public void alarm(){ + Task temp; + Calendar cal=Calendar.getInstance(); + Iterator iter= ToDoList.myTasks.iterator(); + while(iter.hasNext()){ + temp= iter.next(); + Calendar tempCal=Calendar.getInstance(); + if(temp.getStartDate().getYear()==cal.get(Calendar.YEAR)&&temp.getStartDate().getMonth()==(cal.get(Calendar.MONTH)+1)&&temp.getStartDate().getDay()==cal.get(Calendar.DATE)){ + //Date date= new Date(temp.getStartDate().getYear(),temp.getStartDate().getMonth(),temp.getStartDate().getDay(),temp.getStartDate().getHour(),temp.getStartDate().getMin()); + if(temp.getStartDate().getHour()>=cal.get(Calendar.HOUR)&&temp.getStartDate().getMin()>cal.get(Calendar.MINUTE)){ + tempCal.set(temp.getStartDate().getYear(), temp.getStartDate().getMonth()-1, temp.getStartDate().getDay(),temp.getStartDate().getHour(), temp.getStartDate().getMin(),0); + System.out.println(ToDoList.myTasks.indexOf(temp)); + System.out.println(temp.getStartDate().getYear()); + Timer timer = new Timer(); + System.out.println(tempCal.getTime().toString()); + timer.schedule(new TaskAlarm(ToDoList.myTasks.indexOf(temp)), tempCal.getTime()); + timerVector.addElement(timer); + } + } + } + } + @Override + public void actionPerformed(ActionEvent e) { + if(e.getSource()==MIRestore){ + this.setVisible(true); + smain.setVisible(true); + if(isOpenwWeather) + smain.getWeatherPanel().setVisible(true); + smain.getWeatherPanel().setVisible(true); + } + else if(e.getSource()==MIExit){ + content.pn_task.toDoList.exportTasks(); + System.exit(0); + } + + } +} diff --git a/src/TaskManager/MenuBar.java b/src/TaskManager/MenuBar.java new file mode 100644 index 0000000..0a1e11e --- /dev/null +++ b/src/TaskManager/MenuBar.java @@ -0,0 +1,70 @@ +package TaskManager; + +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; + +public class MenuBar extends JMenuBar implements ActionListener { + //field + private JMenu mn_task; + private JMenu mn_info; + private JMenuItem add_task; + private JMenuItem edit_task; + private JMenuItem delete_task; + private JMenuItem show_all; + private JMenuItem show_info; + //method + public MenuBar(){ + mn_task = new JMenu("Edit"); + mn_info = new JMenu("Info"); + + add_task = new JMenuItem("Add Task"); + edit_task = new JMenuItem("Edit Task"); + delete_task = new JMenuItem("Delete Task"); + show_all = new JMenuItem("Show All"); + show_info = new JMenuItem("List"); + + add_task.addActionListener(this); + edit_task.addActionListener(this); + delete_task.addActionListener(this); + show_all.addActionListener(this); + show_info.addActionListener(this); + + mn_task.add(add_task); + mn_task.add(edit_task); + mn_task.add(delete_task); + mn_task.add(show_all); + mn_info.add(show_info); + + add(mn_task); + add(mn_info); + } + + @Override + public void actionPerformed(ActionEvent e) { + if(e.getSource() == add_task){ + TaskPanel.toDoList.add1.setVisible(true); + } + else if(e.getSource() == edit_task){ + TaskPanel.toDoList.edit(TaskPanel.taskList.getSelectedIndex()); + } + else if(e.getSource() == delete_task){ + TaskPanel.toDoList.delete(TaskPanel.taskList.getSelectedIndex()); + } + else if(e.getSource() == show_all){ + TaskPanel.toDoList.setVisible(true); + } + else if(e.getSource() == show_info){ + if(MainFrame.subison == true){ + MainFrame.smain.setVisible(false); + MainFrame.subison = false; + }else{ + MainFrame.smain.setVisible(true); + MainFrame.subison = true; + } + } + } +} diff --git a/src/Task.java b/src/TaskManager/Task.java similarity index 64% rename from src/Task.java rename to src/TaskManager/Task.java index 1d10084..09045a7 100644 --- a/src/Task.java +++ b/src/TaskManager/Task.java @@ -1,3 +1,4 @@ +package TaskManager; /** * A Task within a TaskList @@ -8,9 +9,8 @@ public class Task { private String name; private myDate startDate; - private myDate endDate; + private boolean field; private String priority; - private int percComp; private String category; private String note; @@ -20,10 +20,9 @@ public class Task { public Task() { this.name = "name"; - this.startDate = new myDate(01, 01, 2011); - this.endDate = new myDate(01, 01, 2011); + this.startDate = new myDate(2016, 01, 01, 1, 0); this.priority = "priority"; - this.percComp = 0; + this.field = false; this.category = "category"; this.note = "note"; } @@ -37,13 +36,12 @@ public Task() * @param category task category * @param note task notes */ - public Task(String name, myDate startDate, myDate endDate, String priority, int percComp, String category, String note) + public Task(String name, myDate startDate, String priority, boolean field, String category, String note) { this.name = name; this.startDate = startDate; - this.endDate = endDate; this.priority = priority; - this.percComp = percComp; + this.field = field; this.category = category; this.note = note; } @@ -75,20 +73,6 @@ public myDate getStartDate() { public void setStartDate(myDate startDate) { this.startDate = startDate; } - /** - * Method used to return the end date of the task - * @return the task's end date - */ - public myDate getEndDate() { - return endDate; - } - /** - * Method used to set the task's end date - * @param category the task's end date - */ - public void setEndDate(myDate endDate) { - this.endDate = endDate; - } /** * Method used to return the task's priority * @return the task's priority @@ -103,21 +87,14 @@ public String getPriority() { public void setPriority(String priority) { this.priority = priority; } - /** - * Method used to return the percentage complete of the task - * @return the task's percentage complete - */ - public int getPercentComplete() { - return percComp; - } - /** - * Method used to set the task's percentage complete - * @param category the task's percentage complete - */ - public void setPercentComplete(int percComp) { - this.percComp = percComp; + + public boolean getField(){ + return field; } + public void setField(boolean field){ + this.field = field; + } /** * Method used to set the task's category @@ -153,13 +130,15 @@ public String getNote() { * @return the representation of the task */ public String toString() { - return "Name: "+ getName() + "\n" + "Start Date: " + getStartDate() + "\n" + "End Date: "+ getEndDate() + "\n" + "Priority: "+ getPriority() + "\n" + "Percent Complete: "+ getPercentComplete() + "Category: " + getCategory() + "Note: " + getNote(); + return "Name: "+ getName() + "\n" + "Start Date: " + getStartDate() + "\n" + "Time: " + getStartDate().timeToString() + "\n" + + "Priority: "+ getPriority() + "\n" + "Field" + getField() + "\n" + "Percent Complete: " + "Category: " + getCategory() + "Note: " + getNote(); } /** * Method used to output the task data used for exporting into files * @return task data */ public String toStringExport() { - return getName() +"�"+ getStartDate().getDay() +"�"+ getStartDate().getMonth() +"�"+ getStartDate().getYear() +"�"+ getEndDate().getDay() +"�"+ getEndDate().getMonth() +"�"+ getEndDate().getYear() +"�"+ getPriority() +"�"+ getPercentComplete() +"�"+ getCategory() +"�"+ getNote(); + return getName() +"�"+ getStartDate().getYear() +"�"+ getStartDate().getMonth() +"�"+ getStartDate().getDay()+"�"+ + + getStartDate().getHour() +"�"+ getStartDate().getMin() +"�"+ getPriority() +"�"+getField() +"�"+ getCategory() +"�"+ getNote(); } } diff --git a/src/TaskManager/TaskAlarm.java b/src/TaskManager/TaskAlarm.java new file mode 100644 index 0000000..ec58018 --- /dev/null +++ b/src/TaskManager/TaskAlarm.java @@ -0,0 +1,19 @@ +package TaskManager; + +import java.util.TimerTask; + +public class TaskAlarm extends TimerTask{ + /* + * 알람 실행 class + */ + private int indexOf; + TaskAlarm(int index){ + indexOf=index; + } + public void run() { + + System.out.println("TimeTask!"); + new AlarmFrame(indexOf); + + } +} diff --git a/src/TaskManager/TaskManager.java b/src/TaskManager/TaskManager.java new file mode 100644 index 0000000..572e375 --- /dev/null +++ b/src/TaskManager/TaskManager.java @@ -0,0 +1,7 @@ +package TaskManager; + +public class TaskManager { + public static void main(String[] args){ + new MainFrame(); + } +} diff --git a/src/TaskManager/TaskPanel.java b/src/TaskManager/TaskPanel.java new file mode 100644 index 0000000..a9e034f --- /dev/null +++ b/src/TaskManager/TaskPanel.java @@ -0,0 +1,129 @@ +package TaskManager; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.Calendar; + +import javax.swing.DefaultListModel; +import javax.swing.JButton; +import javax.swing.JList; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.ListSelectionModel; +import javax.swing.ScrollPaneConstants; + +public class TaskPanel extends JPanel implements ActionListener { + //field + protected JPanel pn_taskList; + protected JPanel pn_button; + protected JPanel pn_showbtn; + protected static JList taskList; + protected static DefaultListModel listModel; + protected JButton btn_add; + protected JButton btn_delete; + protected JButton btn_modify; + protected JButton btn_showAll; + protected JButton btn_showToday; + static ToDoList toDoList; + static TodayScheduleFrame todaySchedule; + ContentPanel pn_content; + //method + TaskPanel(ContentPanel content){ + pn_content = content; + pn_taskList = new JPanel(); + pn_button = new JPanel(); + pn_showbtn = new JPanel(); + listModel = new DefaultListModel(); + taskList = new JList(listModel); + btn_add = new JButton("일정 추가"); + btn_modify = new JButton("수정"); + btn_delete = new JButton("삭제"); + btn_showAll = new JButton("일정 모두 보기"); + btn_showToday = new JButton("오늘의 일정 보기"); + toDoList = new ToDoList(); + + setLayout(new BorderLayout()); + pn_button.setBackground(Color.WHITE); + pn_showbtn.setBackground(Color.WHITE); + + taskList.setFixedCellWidth(250); + JScrollPane scroller = new JScrollPane(taskList);//스크롤 생성 + scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); + scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); + taskList.setVisibleRowCount(10);//10줄까지만 보이도록 설정 + taskList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); + pn_taskList.setBackground(Color.WHITE); + pn_taskList.add(scroller); + //actionlistener 추가 + btn_add.addActionListener(this); + btn_modify.addActionListener(this); + btn_delete.addActionListener(this); + btn_showAll.addActionListener(this); + btn_showToday.addActionListener(this); + //panel에 추가 + pn_button.add(btn_add); + pn_button.add(btn_modify); + pn_button.add(btn_delete); + pn_showbtn.add(btn_showAll); + pn_showbtn.add(btn_showToday); + + add(pn_taskList,"North"); + add(new JPanel()); + add(pn_button,"Center"); + add(pn_showbtn,"South"); + showTask(CalendarPanel.getCalendar().get(Calendar.DATE), + CalendarPanel.getCalendar().get(Calendar.MONTH) + 1, + CalendarPanel.getCalendar().get(Calendar.YEAR)); + } + + @Override + public void actionPerformed(ActionEvent e) { + String event = e.getActionCommand(); + if(event.equals("일정 추가")){ + toDoList.add1.setVisible(true); + pn_content.getCalendarPanel().calendarView(); + } + else if(event.equals("수정")){ + toDoList.edit(taskList.getSelectedIndex()); + pn_content.getCalendarPanel().calendarView(); + } + else if(event.equals("삭제")){ + toDoList.delete(taskList.getSelectedIndex()); + pn_content.getCalendarPanel().calendarView(); + } + else if(event.equals("일정 모두 보기")){ + toDoList.setVisible(true); + } + else if(event.equals("오늘의 일정 보기")){ + if(todaySchedule == null){ + todaySchedule = new TodayScheduleFrame(); + } + else if(!todaySchedule.isVisible()){ + todaySchedule.setVisible(true); + } + else{ + todaySchedule.setVisible(false); + } + } + showTask(CalendarPanel.getCalendar().get(Calendar.DATE), + CalendarPanel.getCalendar().get(Calendar.MONTH) + 1, + CalendarPanel.getCalendar().get(Calendar.YEAR)); + } + //일정 출력하는 메소드 + public static void showTask(int day, int month, int year){ + if(!listModel.isEmpty()){ + listModel.removeAllElements(); + } + for(int i = 0; i < ToDoList.myTasks.size(); i++){ + if(ToDoList.myTasks.get(i).getStartDate().getDay() == day && + ToDoList.myTasks.get(i).getStartDate().getMonth() == month && + ToDoList.myTasks.get(i).getStartDate().getYear() == year) + { + listModel.addElement(toDoList.getTask().get(i).getName()); + } + } + } + +} diff --git a/src/ToDoList.java b/src/TaskManager/ToDoList.java similarity index 75% rename from src/ToDoList.java rename to src/TaskManager/ToDoList.java index 7541583..25419d0 100644 --- a/src/ToDoList.java +++ b/src/TaskManager/ToDoList.java @@ -1,16 +1,18 @@ +package TaskManager; + import java.awt.BorderLayout; import java.awt.Color; +import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; +import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; -import java.util.ArrayList; import java.util.Scanner; +import java.util.Vector; import javax.swing.DefaultListModel; import javax.swing.JButton; @@ -30,15 +32,16 @@ /** * @ToDoList.java - A Java based Task Manager used to manage simple tasks - * - * * @author Charles Henry * @version 1.00 2011/04/02 */ - public class ToDoList extends JFrame implements ActionListener { + /** + * + */ + private static final long serialVersionUID = 1L; protected static JList list; protected static DefaultListModel listModel; private static JScrollPane scrollPane; @@ -50,16 +53,16 @@ public class ToDoList extends JFrame implements ActionListener { //Used for task info display private static JLabel taskName; private static JLabel startDate; - private static JLabel endDate; + private static JLabel time; private static JLabel priority; - private static JLabel percComp; + private static JLabel field; private static JLabel category; private static JLabel note; private static JTextField taskNameDisplay; private static JTextField startDateDisplay; - private static JTextField endDateDisplay; + private static JTextField timeDisplay; private static JTextField priorityDisplay; - private static JTextField percCompDisplay; + private static JTextField fieldDisplay; private static JTextField categoryDisplay; private static JTextField noteDisplay; @@ -68,6 +71,7 @@ public class ToDoList extends JFrame implements ActionListener { private static JButton edit; private static JButton filterBtn; private static JButton clearFilterBtn; + private static JButton delete; //Menu bar private static JMenuBar menubar1; @@ -89,16 +93,16 @@ public class ToDoList extends JFrame implements ActionListener { protected static EditWindow edit1 = new EditWindow(); protected static FilterWindow filter1 = new FilterWindow(); - protected static ArrayList myTasks = new ArrayList(); //array used to store task Objects from the Task class - + protected static Vector myTasks = new Vector(); //array used to store task Objects from the Task class public ToDoList() { - this.setLayout(new BorderLayout()); + Dimension dimen = Toolkit.getDefaultToolkit().getScreenSize(); + getContentPane().setLayout(new BorderLayout()); this.setTitle("ToDoList Manager"); this.setSize(640,260); this.setResizable(false); - this.setDefaultCloseOperation(EXIT_ON_CLOSE); //Makes the program terminate properly when the close button is pressed - + this.setLocation((int)dimen.getWidth()/2 - this.getWidth()/2, (int)dimen.getHeight()/2 - this.getHeight()/2); + //adding the Menu bar to the window and to the action listener menubar1 = new JMenuBar(); // Makes a new menu bar (now you can add items to this menu...) this.setJMenuBar(menubar1); // Attaches the named menubar (menubar1) to the window @@ -127,25 +131,25 @@ public ToDoList() //adding the buttons and labels to the window and the ActionListener taskName = new JLabel("Task Name: "); startDate = new JLabel("Start Date: "); - endDate = new JLabel("End Date: "); + time = new JLabel("Time:"); priority = new JLabel("Priority: "); - percComp = new JLabel("Percent Complete: "); + field = new JLabel("Field:"); category = new JLabel("Category: "); note = new JLabel("Note: "); taskName.setHorizontalAlignment(JTextField.CENTER); startDate.setHorizontalAlignment(JTextField.CENTER); - endDate.setHorizontalAlignment(JTextField.CENTER); + time.setHorizontalAlignment(JTextField.CENTER); priority.setHorizontalAlignment(JTextField.CENTER); - percComp.setHorizontalAlignment(JTextField.CENTER); + field.setHorizontalAlignment(JTextField.CENTER); category.setHorizontalAlignment(JTextField.CENTER); note.setHorizontalAlignment(JTextField.CENTER); - //make display fields noneditable and white in colour + //make display fields noneditable and white in color taskNameDisplay = new JTextField(); taskNameDisplay.setEditable(false); taskNameDisplay.setBackground(Color.white); startDateDisplay = new JTextField(); startDateDisplay.setEditable(false); startDateDisplay.setBackground(Color.white); - endDateDisplay = new JTextField(); endDateDisplay.setEditable(false); endDateDisplay.setBackground(Color.white); + timeDisplay = new JTextField(); timeDisplay.setEditable(false); timeDisplay.setBackground(Color.white); priorityDisplay = new JTextField(); priorityDisplay.setEditable(false); priorityDisplay.setBackground(Color.white); - percCompDisplay = new JTextField(); percCompDisplay.setEditable(false); percCompDisplay.setBackground(Color.white); + fieldDisplay = new JTextField(); fieldDisplay.setEditable(false); fieldDisplay.setBackground(Color.white); categoryDisplay = new JTextField(); categoryDisplay.setEditable(false); categoryDisplay.setBackground(Color.white); noteDisplay = new JTextField(); noteDisplay.setEditable(false); noteDisplay.setBackground(Color.white); @@ -153,9 +157,9 @@ public ToDoList() rightPanel = new JPanel(new GridLayout(7, 2)); rightPanel.add(taskName); rightPanel.add(taskNameDisplay); rightPanel.add(startDate); rightPanel.add(startDateDisplay); - rightPanel.add(endDate); rightPanel.add(endDateDisplay); + rightPanel.add(time); rightPanel.add(timeDisplay); rightPanel.add(priority); rightPanel.add(priorityDisplay); - rightPanel.add(percComp); rightPanel.add(percCompDisplay); + rightPanel.add(field); rightPanel.add(fieldDisplay); rightPanel.add(category); rightPanel.add(categoryDisplay); rightPanel.add(note); rightPanel.add(noteDisplay); @@ -174,13 +178,16 @@ public ToDoList() clearFilterBtn = new JButton("Clear filter"); add = new JButton("Add Task"); edit = new JButton("Edit Selected"); + delete = new JButton("Delete"); filterBtn.addActionListener(this); clearFilterBtn.addActionListener(this); add.addActionListener(this); edit.addActionListener(this); + delete.addActionListener(this); lowerPanel = new JPanel(new FlowLayout()); lowerPanel.add(add); lowerPanel.add(edit); + lowerPanel.add(delete); lowerPanel.add(filterBtn); lowerPanel.add(clearFilterBtn); this.getContentPane().add(BorderLayout.SOUTH, lowerPanel); //Add the panel to the SOUTH of the BorderLayout @@ -197,29 +204,18 @@ public ToDoList() listListener myListListener = new listListener(); list.addListSelectionListener(myListListener); - list.setSelectedIndex(0); - - //export tasks on close - this.addWindowListener(new WindowAdapter() - { - /** - * Method used to export tasks when the program is closed - * - * @ param exported boolean used to show whether the tasks have been saved of not - */ - public void windowClosing(WindowEvent we) - { - if(!exported) //if tasks are not saved already - { - exportTasks(); - } - } - }); + list.setSelectedIndex(0); validate(); - } + public Vector getTask(){ + return myTasks; + } + + public boolean getExported(){ + return exported; + } /** * ListListener used monitor JList list selection changes * @author Charles @@ -247,25 +243,52 @@ public static void changeOutputDetails(int index) { //update task output details from array data taskNameDisplay.setText(myTasks.get(index).getName()); - startDateDisplay.setText(""+myTasks.get(index).getStartDate()); - endDateDisplay.setText(""+myTasks.get(index).getEndDate()); + startDateDisplay.setText(""+myTasks.get(index).getStartDate().toString()); + timeDisplay.setText(""+myTasks.get(index).getStartDate().getHour() + ":"+myTasks.get(index).getStartDate().getMin()); priorityDisplay.setText(""+myTasks.get(index).getPriority()); - percCompDisplay.setText(""+myTasks.get(index).getPercentComplete()+"%"); + if(myTasks.get(index).getField()) + fieldDisplay.setText("Outdoor"); + else + fieldDisplay.setText("Inside"); categoryDisplay.setText(myTasks.get(index).getCategory()); noteDisplay.setText(myTasks.get(index).getNote()); } + + public void delete(int index){ + if(index < 0) //if not item has been selected on the JList, notify the user + { + JOptionPane.showMessageDialog(null, "Error, no task selected."); + } + else + { + listenerOn = false; //disable the JList Listener while editing + myTasks.remove(index); //remove the task from the array + listModel.remove(index); //remove the task from the JList + listenerOn = true; //enable the JList listener + exported = false; //set exported to false as data has been changed + JOptionPane.showMessageDialog(null, "Task deleted."); + //clear Task display text + taskNameDisplay.setText(""); + startDateDisplay.setText(""); + timeDisplay.setText(""); + priorityDisplay.setText(""); + fieldDisplay.setText(""); + categoryDisplay.setText(""); + noteDisplay.setText(""); + } + } /** * Method used to open the edit window */ - public void edit() + public void edit(int index) { - if(list.getSelectedIndex() < 0) //if there is no task selected, notify the user + if(index < 0) //if there is no task selected, notify the user { JOptionPane.showMessageDialog(null, "Error, no task selected."); } else { - currentEditIndex = list.getSelectedIndex(); //store the current selected task index + currentEditIndex = index; //store the current selected task index EditWindow.populate(); //populate EditWindow with task data listenerOn = false; //Disable the listListener while editing the list edit1.setVisible(true); @@ -285,17 +308,19 @@ public void importTasks() while(textFile.hasNextLine()) { String tString = textFile.nextLine(); - String [] str = tString.split(" "); //use " " to differentiate between each block of information and store it in a new array + String [] str = tString.split("�"); //use "�" to differentiate between each block of information and store it in a new array Task t = new Task(); //create a new task //Add task details from string t.setName(str[0]); - t.setStartDate(new myDate(Integer.parseInt(str[1]), Integer.parseInt(str[2]), Integer.parseInt(str[3]))); - t.setEndDate(new myDate(Integer.parseInt(str[4]), Integer.parseInt(str[5]), Integer.parseInt(str[6]))); - t.setPriority(str[7]); - t.setPercentComplete(Integer.parseInt(str[8])); - t.setCategory(str[9]); - t.setNote(str[10]); + t.setStartDate(new myDate(Integer.parseInt(str[1]), Integer.parseInt(str[2]), Integer.parseInt(str[3]), Integer.parseInt(str[4]), Integer.parseInt(str[5]))); + t.setPriority(str[6]); + if(str[7].equals("true")) + t.setField(true); + else + t.setField(false); + t.setCategory(str[8]); + t.setNote(str[9]); myTasks.add(t); //add the task to the array list listModel.addElement(myTasks.get(myTasks.size()-1).getName()); //add the task to the JList display @@ -303,7 +328,7 @@ public void importTasks() } catch (FileNotFoundException e)//if the tasks text file cannot be found, notify the user { - JOptionPane.showMessageDialog(null, "Error, the following file could not be found or is corrupt:" + "\n" + "'C:\\ToDoList\\ToDoListTasks.txt'" + "\n" + "Please create this file to export task list data."); + JOptionPane.showMessageDialog(null, "Error, the following file could not be found or is corrupt:" + "\n" + "'ToDoListTasks.txt'" + "\n" + "Please create this file to export task list data."); } } catch(NumberFormatException z)//if the task file is not formatted properly notify the user @@ -318,7 +343,7 @@ public void exportTasks() { try { - PrintWriter p = new PrintWriter("C:\\ToDoList\\ToDoListTasks.txt"); //create text file + PrintWriter p = new PrintWriter("ToDoListTasks.txt"); //create text file exportText = ""; //empty the string for new input int counter = 0; //counter used to count how many tasks have been exported @@ -334,12 +359,11 @@ public void exportTasks() p.close(); //close the printWriter exported = true; //set exported to true to show tasks have been saved - JOptionPane.showMessageDialog(null, counter + " tasks exported."); } catch (FileNotFoundException e)//if the file cannot be found or created, notify the user { - JOptionPane.showMessageDialog(null, "Error, the following file could not be created:" + "\n" + "'C:\\ToDoList\\ToDoListTasks.txt'" + "\n" + "Please create this file to export task list data."); + JOptionPane.showMessageDialog(null, "Error, the following file could not be created:" + "\n" + "'ToDoListTasks.txt'" + "\n" + "Please create this file to export task list data."); } } /** @@ -350,6 +374,7 @@ public void actionPerformed(ActionEvent e) { if(e.getSource() == addItem) { add1.setVisible(true); //open the add window + listModel.addElement(myTasks.get(myTasks.size()-1).getName()); } if(e.getSource() == add) { @@ -357,35 +382,19 @@ public void actionPerformed(ActionEvent e) { } if(e.getSource() == delItem) { - if(list.getSelectedIndex() < 0) //if not item has been selected on the JList, notify the user - { - JOptionPane.showMessageDialog(null, "Error, no task selected."); - } - else - { - listenerOn = false; //disable the JList Listener while editing - myTasks.remove(list.getSelectedIndex()); //remove the task from the array - listModel.remove(list.getSelectedIndex()); //remove the task from the JList - listenerOn = true; //enable the JList listener - exported = false; //set exported to false as data has been changed - JOptionPane.showMessageDialog(null, "Task deleted."); - //clear Task display text - taskNameDisplay.setText(""); - startDateDisplay.setText(""); - endDateDisplay.setText(""); - priorityDisplay.setText(""); - percCompDisplay.setText(""); - categoryDisplay.setText(""); - noteDisplay.setText(""); - } + delete(list.getSelectedIndex()); + } + if(e.getSource() == delete) + { + delete(list.getSelectedIndex()); } if(e.getSource() == edit) { - edit(); + edit(list.getSelectedIndex()); } if(e.getSource() == editSelItem) { - edit(); + edit(list.getSelectedIndex()); } if(e.getSource() == importItem) { @@ -413,9 +422,7 @@ public void actionPerformed(ActionEvent e) { ToDoList.listModel.remove(i); ToDoList.listModel.add(i, myTasks.get(i).getName()); ToDoList.listenerOn = true; - } - + } } } - } \ No newline at end of file diff --git a/src/TaskManager/TodayScheduleFrame.java b/src/TaskManager/TodayScheduleFrame.java new file mode 100644 index 0000000..3872e22 --- /dev/null +++ b/src/TaskManager/TodayScheduleFrame.java @@ -0,0 +1,183 @@ +package TaskManager; + +import java.awt.Color; +import java.awt.Font; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Random; + +import javax.swing.DefaultListModel; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JList; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import javax.swing.ListSelectionModel; +import javax.swing.ScrollPaneConstants; +import javax.swing.SwingConstants; +import javax.swing.border.LineBorder; +import javax.swing.border.TitledBorder; + +public class TodayScheduleFrame extends JFrame { + //field + private ArrayList todayFor = new ArrayList(); + protected JLabel date; + protected JList list; + protected DefaultListModel model; + protected JTextArea info; + private JTextArea wisdom; + //method + public TodayScheduleFrame(){ + setVisible(true); + setSize(550,400); + setResizable(false); + getContentPane().setBackground(Color.WHITE); + setLocation(MainFrame.x * 2, MainFrame.y *2); + getContentPane().setLayout(null); + setWisdom(); + //날짜 출력 + date = new JLabel(CalendarPanel.getToday().get(Calendar.MONTH)+1 + "월" + CalendarPanel.getToday().get(Calendar.DATE) + "일"); + date.setHorizontalAlignment(SwingConstants.CENTER); + date.setBounds(39, 10, 470, 39); + date.setFont(new Font("맑은 고딕", Font.BOLD, 15)); + getContentPane().add(date); + //오늘의 일정 출력 + model = new DefaultListModel(); + list = new JList(model); + JScrollPane scroller = new JScrollPane(list);//스크롤 생성 + scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); + scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); + list.setVisibleRowCount(5); + list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); + scroller.setBounds(39, 125, 470, 150); + scroller.setBackground(Color.WHITE); + scroller.setBorder(new TitledBorder("스케줄")); + getContentPane().add(scroller); + //정보 출력 + info = new JTextArea(); + info.setBackground(Color.WHITE); + info.setBounds(39, 285, 470, 73); + info.setBorder(new TitledBorder("정보")); + info.setEditable(false); + getContentPane().add(info); + //명언 출력 + wisdom = new JTextArea(); + String today = getwisdom(); + wisdom.setText(today); + + if(isalpha(today)){ + if(today.length()>85){ + wisdom.setBounds(39, 61, 470, 55); + }else{ + wisdom.setBounds(39, 61, 470, 42); + } + }else{ + if(today.length()>45){ + wisdom.setBounds(39, 61, 470, 55); + }else{ + wisdom.setBounds(39, 61, 470, 42); + } + } + + wisdom.setEditable(false); + wisdom.setLineWrap(true); + wisdom.setWrapStyleWord(true); + wisdom.setBorder(new TitledBorder(new LineBorder(new Color(51,255,102),5), "오늘의 명언")); + getContentPane().add(wisdom); + wisdom.setColumns(10); + + showTask(); + showInfo(); + } + //영어인지 확인하는 메소드 + public boolean isalpha(String today){ + char ch = today.charAt(0); + if((ch>='a' && ch<='z')||(ch>='A'&&ch<='Z')) + return true; + else + return false; + } + //명언을 랜덤하게 가져오는 메소드 + public String getwisdom(){ + Random random = new Random(); + int index = random.nextInt(todayFor.size()); + return todayFor.get(index).toString(); + } + //명언을 출력하는 메소드 + public void setWisdom(){ + BufferedReader br = null; //버퍼 생성 + InputStreamReader isr = null; // Input 스트림 생성 + FileInputStream fis = null; // File Input 스트림 생성 + File file = new File("wisdom.txt"); // File 경로 + String temp = "";// 버퍼로 읽어들일 임시 변수 + + try { + fis = new FileInputStream(file); + isr = new InputStreamReader(fis, "UTF-8"); + br = new BufferedReader(isr); + while( (temp = br.readLine()) != null) { + todayFor.add(temp); + } + + } catch (FileNotFoundException e) { + e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + } finally { + try { + fis.close(); + } catch (IOException e) { + e.printStackTrace(); + } + try { + isr.close(); + } catch (IOException e) { + e.printStackTrace(); + } + try { + br.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + //정보를 출력하는 메소드 + public void showInfo(){ + StringBuilder todayInfo = new StringBuilder(); + todayInfo.append("오늘의 날씨는 "); + switch(WeatherPanel.sky){ + case 1: todayInfo.append("맑겠습니다."); break; + case 2: todayInfo.append("구름이 조금 있겠습니다.\n"); break; + case 3: todayInfo.append("구름이 많이 있겠습니다.\n"); break; + case 4: todayInfo.append("비가 예보되어 있습니다.\n"); break; + case 5: todayInfo.append("진눈깨비가 날리겠습니다.\n");break; + case 6: todayInfo.append("눈이 예보되어 있습니다.\n"); break; + case 7: todayInfo.append("흐리겠습니다.\n"); break; + } + switch(WeatherPanel.fineDust){ + case 2: todayInfo.append("미세먼지가 나쁨수준이니 마스크를 준비하세요.\n"); break; + case 3: todayInfo.append("미세먼지가 매우 나쁨수준이니 실외활동 자제하고 마스크를 착용하세요.\n"); break; + } + info.setText(todayInfo.toString()); + } + //일정을 출력하는 메소드 + public void showTask(){ + if(!model.isEmpty()){ + model.removeAllElements(); + } + for(int i = 0; i < ToDoList.myTasks.size(); i++){ + if(ToDoList.myTasks.get(i).getStartDate().getDay() == CalendarPanel.getToday().get(Calendar.DATE) && + ToDoList.myTasks.get(i).getStartDate().getMonth() == CalendarPanel.getToday().get(Calendar.MONTH)+1 && + ToDoList.myTasks.get(i).getStartDate().getYear() == CalendarPanel.getToday().get(Calendar.YEAR)) + { + model.addElement(ToDoList.myTasks.get(i).getName()); + } + } + } +} diff --git a/src/TaskManager/WeatherPanel.java b/src/TaskManager/WeatherPanel.java new file mode 100644 index 0000000..5bf02b5 --- /dev/null +++ b/src/TaskManager/WeatherPanel.java @@ -0,0 +1,162 @@ +package TaskManager; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Font; +import java.awt.Image; + +import javax.swing.ImageIcon; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JTextArea; +import javax.swing.SwingUtilities; + +import Util.ForecastParser; + +public class WeatherPanel extends JPanel { + //field + String location = "충무로"; + JPanel pn_temp; + JTextArea ta_weatherInfo; + JTextArea ta_tempNow; + JTextArea ta_sensibleTemp; + ImageIcon weatherImg; + Image useImg; + JLabel img; + static int sky, fineDust; + + //기본 생성자 + WeatherPanel(){ + setBackground(Color.WHITE); + pn_temp = new JPanel(); + ta_weatherInfo = new JTextArea(); + ta_tempNow = new JTextArea(); + ta_sensibleTemp = new JTextArea(); + //날씨 정보 text + ta_weatherInfo.setFont(new Font("맑은 고딕", Font.PLAIN, 15)); + ta_weatherInfo.setEditable(false); + ta_weatherInfo.setBackground(Color.WHITE); + ta_weatherInfo.setText(location + "\n"); + //SKY의 상태에 따라 이미지 출력 + switch(MainFrame.getWeather().get("SKY")){ + case "1": + sky = 1; + ta_weatherInfo.append("맑음\n"); + weatherImg = new ImageIcon("맑음.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + break; + case "2": + sky = 2; + ta_weatherInfo.append("구름조금\n"); + weatherImg = new ImageIcon("구름조금.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + break; + case "3": + sky = 3; + ta_weatherInfo.append("구름많음\n"); + weatherImg = new ImageIcon("구름많음.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + break; + case "4": + if(MainFrame.getWeather().get("PTY").equals("1")){ + sky = 4; + ta_weatherInfo.append("비\n"); + weatherImg = new ImageIcon("비.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + } + else if(MainFrame.getWeather().get("PTY").equals("2")){ + sky = 5; + ta_weatherInfo.append("진눈깨비\n"); + weatherImg = new ImageIcon(""); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + } + else if(MainFrame.getWeather().get("PTY").equals("3")){ + sky = 6; + ta_weatherInfo.append("눈\n"); + weatherImg = new ImageIcon("눈.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + } + else if(MainFrame.getWeather().get("PTY").equals("0")){ + sky = 7; + ta_weatherInfo.append("흐림\n"); + weatherImg = new ImageIcon("흐림.jpg"); + useImg = weatherImg.getImage(); + useImg = useImg.getScaledInstance(70, 70, java.awt.Image.SCALE_SMOOTH); + weatherImg = new ImageIcon(useImg); + img = new JLabel("", weatherImg, SwingUtilities.CENTER); + } + break; + } + //미세먼지 출력 + ta_weatherInfo.append("미세먼지: "); + ta_weatherInfo.append(calculateFineDust(MainFrame.getFineDust().get("pm10Value"))); + ta_weatherInfo.append(" "); + //현재 기온과 체감온도 출력 + pn_temp.setLayout(new BorderLayout()); + pn_temp.setSize(15, 15); + ta_tempNow.setFont(new Font("맑은 고딕", Font.BOLD, 30)); + ta_tempNow.setEditable(false); + ta_tempNow.setText(MainFrame.getWeather().get("T1H")+"°C"); + ta_sensibleTemp.setFont(new Font("맑은 고딕", Font.PLAIN, 13)); + ta_sensibleTemp.setEditable(false); + ta_sensibleTemp.setText("체감: " + calculateSensibleTemp() + "°C"); + + pn_temp.add(BorderLayout.NORTH, ta_tempNow); + pn_temp.add(BorderLayout.SOUTH, ta_sensibleTemp); + add("LEFT", img); + add("CENTER", ta_weatherInfo); + add("RIGHT", pn_temp); + } + + /** + * 체감온도 계산 + * @return + */ + String calculateSensibleTemp(){ + double v = Double.parseDouble(MainFrame.getWeather().get("WSD"))*3.6; + double t = Double.parseDouble(MainFrame.getWeather().get("T1H")); + double senTemp = 13.12 + 0.6215*t - 11.37*Math.pow(v,0.16) + 0.3965*Math.pow(v,0.16)*t; + + return Double.toString((int)senTemp); + } + /** + * 미세먼지 농도를 통한 예보 + */ + String calculateFineDust(String dust){ + int dustValue = Integer.parseInt(dust); + if(dustValue <= 30){ + fineDust = 0; + return "좋음"; + } + else if(dustValue <= 80){ + fineDust = 1; + return "보통"; + } + else if(dustValue <=150){ + fineDust = 2; + return "나쁨"; + } + else{ + fineDust = 3; + return "매우나쁨"; + } + } +} \ No newline at end of file diff --git a/src/myDate.java b/src/TaskManager/myDate.java similarity index 64% rename from src/myDate.java rename to src/TaskManager/myDate.java index 1da4ce6..47b8756 100644 --- a/src/myDate.java +++ b/src/TaskManager/myDate.java @@ -1,96 +1,93 @@ +package TaskManager; /** * Class used to create date objects - * * @author Charles Henry - * + * */ public class myDate { - private int day; - private int month; private int year; - + private int month; + private int day; + private int hour; + private int min; + /** * Method used to create a date instance - * - * @param day - * the day of this instance - * @param month - * the month of this instance - * @param year - * the year of this instance + * @param day the day of this instance + * @param month the month of this instance + * @param year the year of this instance */ - public myDate(int day, int month, int year) { - // super(); - this.day = day; - this.month = month; + public myDate(int year, int month, int day, int hour, int min) { this.year = year; + this.month = month; + this.day = day; + this.hour = hour; + this.min = min; } - /** * Method used to return the day of this instance - * * @return the day of this instance */ public int getDay() { return day; } - /** * Method used to set the day of this instance - * - * @param day - * the day + * @param day the day */ public void setDay(int day) { this.day = day; } - /** * Method used to return the month of this instance - * * @return the month of this instance */ public int getMonth() { return month; } - /** * Method used to set the month of this instance - * - * @param month - * the month + * @param month the month */ public void setMonth(int month) { this.month = month; } - /** * Method used to return the year of this instance - * * @return the year of this instance */ public int getYear() { return year; } - /** * Method used to set the year of this instance - * - * @param year - * the year + * @param year the year */ public void setYear(int year) { this.year = year; } - + public int getHour(){ + return hour; + } + public void setHour(int hour){ + this.hour = hour; + } + public int getMin(){ + return min; + } + public void setMin(int min){ + this.min = min; + } @Override /** * Method used to return a textual representation of this date instance * @return the representation of this date instance */ public String toString() { - return day + "/" + month + "/" + year; + return year + "/" + month + "/" + day; + } + public String timeToString(){ + return hour + "/" + min; } - } diff --git a/src/Util/ApiExplorer.java b/src/Util/ApiExplorer.java new file mode 100644 index 0000000..c2748e4 --- /dev/null +++ b/src/Util/ApiExplorer.java @@ -0,0 +1,64 @@ +package Util; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.Calendar; + +public class ApiExplorer { + // 각종 API 관련 서비스키, url 등등 기본적인 API에서 제공하는 정보를 편의에 맞게 수정 + protected String FCBaseUrl = "http://newsky2.kma.go.kr/service/SecndSrtpdFrcstInfoService2/"; + protected String FCserviceKey = "bmEl832vF6jbBp3i%2Fux7VvldeJN6gX0YbM67TfhYPwkB%2B5Y0yaYwZ9n6sdz0mHiIIy0UrdvlKF0fulRi0y%2FuhA%3D%3D"; + protected String FCMidKey="bmEl832vF6jbBp3i%2Fux7VvldeJN6gX0YbM67TfhYPwkB%2B5Y0yaYwZ9n6sdz0mHiIIy0UrdvlKF0fulRi0y%2FuhA%3D%3D"; + protected String AirDustKey="bmEl832vF6jbBp3i%2Fux7VvldeJN6gX0YbM67TfhYPwkB%2B5Y0yaYwZ9n6sdz0mHiIIy0UrdvlKF0fulRi0y%2FuhA%3D%3D"; + protected String FCMidUrl = "http://newsky2.kma.go.kr/service/MiddleFrcstInfoService/"; + protected String airUrl="http://openapi.airkorea.or.kr/openapi/services/rest/ArpltnInforInqireSvc/"; + protected Calendar cal = Calendar.getInstance(); + protected int cDate, cTime; + + ApiExplorer() { + cDate = currentDate(); + cTime = currentTime(); + } + + protected int currentDate() { + // 현재 날짜를 정수형으로 반환 + int Date; + Date = cal.get(Calendar.YEAR) * 10000; + Date += (cal.get(Calendar.MONTH) + 1) * 100; + Date += cal.get(Calendar.DATE); + return Date; + } + + protected int currentTime() { + // 현재 시간을 정수형으로 반환 + int Time = cal.get(Calendar.HOUR_OF_DAY) * 100; + Time += cal.get(Calendar.MINUTE); + return Time; + } + + public String send(String url) throws IOException { + /* + * 매개변수로 url을 받아 http 방식으로 요청, 응답받은 문자열을 반환한다. + */ + URL forecasturl= new URL(url); + HttpURLConnection conn = (HttpURLConnection) forecasturl.openConnection(); + conn.setRequestMethod("GET"); + conn.setRequestProperty("Content-type", "application/json"); + BufferedReader rd; + if (conn.getResponseCode() >= 200 && conn.getResponseCode() <= 300) { + rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); + } else { + rd = new BufferedReader(new InputStreamReader(conn.getErrorStream())); + } + StringBuilder sb = new StringBuilder(); + String line; + while ((line = rd.readLine()) != null) { + sb.append(line); + } + rd.close(); + conn.disconnect(); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/Util/FineDustExplorer.java b/src/Util/FineDustExplorer.java new file mode 100644 index 0000000..1b8c9f7 --- /dev/null +++ b/src/Util/FineDustExplorer.java @@ -0,0 +1,33 @@ +package Util; +import java.io.IOException; + +public class FineDustExplorer extends ApiExplorer{ + /* + * 미세 먼지의 데이터 수신을 위한 class + */ + String resultFineDust; + String sido="서울"; + String fineDust="getCtprvnRltmMesureDnsty"; + String ver="1.3"; + FineDustExplorer(){ + try { + resultFineDust=send(FineDust_Request()); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public String FineDust_Request() { + StringBuilder forecastURL = new StringBuilder(airUrl + fineDust); + forecastURL.append("?ServiceKey=" + AirDustKey); + forecastURL.append("&_returnType=json"); + forecastURL.append("&sidoName=" + sido); + forecastURL.append("&ver=" + ver);// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + public String getFnDst(){ + return resultFineDust; + } +} diff --git a/src/Util/FineDustParser.java b/src/Util/FineDustParser.java new file mode 100644 index 0000000..6be881f --- /dev/null +++ b/src/Util/FineDustParser.java @@ -0,0 +1,55 @@ +package Util; +import java.util.HashMap; +import java.util.Iterator; + +import org.json.simple.JSONArray; +import org.json.simple.JSONObject; +import org.json.simple.parser.JSONParser; +import org.json.simple.parser.ParseException; + +public class FineDustParser { + /* + * 미세먼지의 데이터 파싱을 위한 class + */ + JSONParser jsonParser = new JSONParser(); + FineDustExplorer FDE= new FineDustExplorer(); + HashMap mapFnDst=new HashMap(); + String str_FineDust = FDE.getFnDst(); + String realFrcst; + public FineDustParser(){ + fnDstParsing(); + } + private void fnDstParsing() { + /* + * json 방식으로 파싱하여 구현 + */ + JSONObject json; + try { + json = (JSONObject) jsonParser.parse(str_FineDust); + + JSONArray list = (JSONArray) json.get("list"); + for(int i=0;i iter = mapFnDst.keySet().iterator(); + break; + } + } + + } catch (ParseException e) { + e.printStackTrace(); + } + } + public HashMap getFnDstHashMap(){ + return mapFnDst; + } +} diff --git a/src/Util/ForecastExplorer.java b/src/Util/ForecastExplorer.java new file mode 100644 index 0000000..c5c4c3b --- /dev/null +++ b/src/Util/ForecastExplorer.java @@ -0,0 +1,107 @@ +package Util; +import java.io.IOException; + +public class ForecastExplorer extends ApiExplorer { + /* + * 신규 동네 예보 조회 서비스의 데이터를 수신할 class + */ + String Grib = "ForecastGrib";// 실황 + String Space = "ForecastSpaceData";// 예보 + String resultSpace; + String resultGrib; + ForecastExplorer() throws IOException { + /* + * 데이터 수신 + */ + resultSpace=send(Space_Request()); + resultGrib=send(Grib_Request()); + } + /* + * 양식에 맞게 시간을 계산한다. + */ + private int make_GribTime() {// 실황 기준 시간 + int gribtime = cTime; + if (gribtime % 100 <= 40) {// API 기준 시간 + if (gribtime < 100) {// 00시의 경우 + gribtime += 2300; + } else { + gribtime -= 100; + } + } + return (gribtime / 100) * 100; + } + + private int make_GribDate() { + int gribTime = cTime; + int gribDate = cDate; + if (gribTime <= 40) { + return --gribDate; + } + return gribDate; + } + + public int make_SpaceTime() { + int spaceTime = cTime; + int tTime = (spaceTime / 100) % 3; + int minute = spaceTime % 100; + if (spaceTime <= 230) + return 2300; + else { + + if (tTime == 2) { + if (minute <= 30) + spaceTime -= 300; + } else if (tTime == 1) { + spaceTime -= 200; + } else { + spaceTime -= 100; + } + return (spaceTime / 100) * 100; + } + } + + public int make_SpaceDate() { + int spaceTime = cTime; + int spaceDate = cDate; + if (spaceTime <= 230) + spaceDate--; + return spaceDate; + + } + /* + * 구한 시간을 기준으로 데이터 요청 + */ + public String Grib_Request() { + int gribDate = make_GribDate(); + int gribTime = make_GribTime(); + + StringBuilder forecastURL = new StringBuilder(FCBaseUrl + Grib); + forecastURL.append("?ServiceKey=" + FCserviceKey);// URLEncoder.encode(serviceKey,"UTF-8")); + forecastURL.append("&_type=json"); + forecastURL.append("&base_date=" + gribDate + "&base_time=" + String.format("%04d", gribTime)); + forecastURL.append("&nx=60" + "&ny=127");// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + + public String Space_Request() { + int spaceDate = make_SpaceDate(); + int spaceTime = make_SpaceTime(); + + StringBuilder forecastURL = new StringBuilder(FCBaseUrl + Space); + forecastURL.append("?ServiceKey=" + FCserviceKey);// URLEncoder.encode(serviceKey,"UTF-8")); + forecastURL.append("&_type=json"); + forecastURL.append("&base_date=" + spaceDate + "&base_time=" + String.format("%04d", spaceTime)); + forecastURL.append("&nx=60" + "&ny=127");// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + public String getSpace(){ + return resultSpace; + } + public String getGrib(){ + return resultGrib; + } +} diff --git a/src/Util/ForecastMidExplorer.java b/src/Util/ForecastMidExplorer.java new file mode 100644 index 0000000..dc4d5b7 --- /dev/null +++ b/src/Util/ForecastMidExplorer.java @@ -0,0 +1,83 @@ +package Util; +import java.io.IOException; + +/* + * author : ji + * 2016.11.17 + * 중기 기상 예보의 데이터 수신를 위한 class + */ +public class ForecastMidExplorer extends ApiExplorer { + String midFrcst="getMiddleForecast"; + String midLand="getMiddleLandWeather"; + String midTemp="getMiddleTemperature"; + int stnId=109; //서울, 인천, 경기도 기상 전망조회 구역 코드 + String regLandId="11B00000";//서울, 인천, 경기도 육상 예보 구역 코드 + String regTempId="11B10101";//서울 기온 예보 구역 코드 + long tmFrcst; + String resultFrcst; + String resultLand; + String resultTemp; + ForecastMidExplorer() throws IOException { + tmFrcst=makeTmFrcst(); + resultFrcst=send(Frcst_Request()); + resultLand=send(Land_Request()); + resultTemp=send(Temp_Request()); + } + public long makeTmFrcst(){ + /* + * 중기 예보 시간 형식에 맞춰 구현 + */ + int iTime; + long lDate=cDate; + if(cTime>1800) + iTime=1800; + else if(cTime<=600){ + iTime=1800; + lDate--; + } + else + iTime=600; + return lDate*10000l+iTime; + } + private String Frcst_Request() { + + StringBuilder forecastURL = new StringBuilder(FCMidUrl + midFrcst); + forecastURL.append("?ServiceKey=" + FCMidKey);// URLEncoder.encode(serviceKey,"UTF-8")); + forecastURL.append("&_type=json"); + forecastURL.append("&stnId=" + stnId); + forecastURL.append("&tmFc="+tmFrcst);// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + private String Land_Request(){ + StringBuilder forecastURL = new StringBuilder(FCMidUrl + midLand); + forecastURL.append("?ServiceKey=" + FCMidKey); + forecastURL.append("&_type=json"); + forecastURL.append("®Id=" + regLandId); + forecastURL.append("&tmFc="+tmFrcst);// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + private String Temp_Request(){ + StringBuilder forecastURL = new StringBuilder(FCMidUrl + midTemp); + forecastURL.append("?ServiceKey=" + FCMidKey); + forecastURL.append("&_type=json"); + forecastURL.append("®Id=" + regTempId); + forecastURL.append("&tmFc="+tmFrcst);// 충무로 + forecastURL.append("&numOfRows=999");/* 검색할 줄 수 */ + forecastURL.append("&pageNo=1"); /* 나타낼 페이지 */ + return forecastURL.toString(); + } + public String getFrcst(){ + return resultFrcst; + } + public String getLand(){ + return resultLand; + } + public String getTemp(){ + return resultTemp; + } + +} diff --git a/src/Util/ForecastMidParser.java b/src/Util/ForecastMidParser.java new file mode 100644 index 0000000..6bdd208 --- /dev/null +++ b/src/Util/ForecastMidParser.java @@ -0,0 +1,105 @@ +package Util; +import java.io.IOException; +import java.util.HashMap; +import java.util.Iterator; + +import org.json.simple.JSONObject; +import org.json.simple.parser.JSONParser; +import org.json.simple.parser.ParseException; + +public class ForecastMidParser { + /* + * 중기 예보 정보 파싱을 위한 class + */ + JSONParser jsonParser = new JSONParser(); + ForecastMidExplorer FME= new ForecastMidExplorer(); + HashMap mapLand=new HashMap(); + HashMap mapTemp=new HashMap(); + String str_Frcst = FME.getFrcst(); + String str_Land = FME.getLand(); + String str_Temp=FME.getTemp(); + String realFrcst; + public ForecastMidParser() throws IOException { + frcstParsing(); + landParsing(); + tempParsing(); + } + /* + * 받아온 중기 예보 정보 파싱 + */ + private void frcstParsing() throws IOException { + + JSONObject json; + try { + json = (JSONObject) jsonParser.parse(str_Frcst); + + JSONObject resp = (JSONObject) json.get("response"); + JSONObject body = (JSONObject) resp.get("body"); + JSONObject items = (JSONObject) body.get("items"); + JSONObject item = (JSONObject) items.get("item"); + realFrcst=item.get("wfSv").toString(); + } catch (ParseException e) { + e.printStackTrace(); + } + } + private void landParsing()throws IOException { + JSONObject json; + try { + json = (JSONObject) jsonParser.parse(str_Land); + String wf; + String am; + String pm; + JSONObject resp = (JSONObject) json.get("response"); + JSONObject body = (JSONObject) resp.get("body"); + JSONObject items = (JSONObject) body.get("items"); + JSONObject item = (JSONObject) items.get("item"); + for (int i = 3; i <= 10; i++) { + if(i<=7){ + am ="wf"+i+"Am"; + pm ="wf"+i+"Pm"; + mapLand.put(am, item.get(am).toString()); + mapLand.put(pm, item.get(pm).toString()); + } + else{ + wf="wf"+i; + mapLand.put(wf, item.get(wf).toString()); + } + + } + } catch (ParseException e) { + e.printStackTrace(); + } + Iterator iter = mapLand.keySet().iterator(); + } + private void tempParsing()throws IOException { + JSONObject json; + try { + json = (JSONObject) jsonParser.parse(str_Temp); + String min; + String max; + JSONObject resp = (JSONObject) json.get("response"); + JSONObject body = (JSONObject) resp.get("body"); + JSONObject items = (JSONObject) body.get("items"); + JSONObject item = (JSONObject) items.get("item"); + for (int i = 3; i <= 10; i++) { + min="taMin"+i; + max="taMax"+i; + mapTemp.put(min, item.get(min).toString()); + mapTemp.put(max,item.get(max).toString()); + + } + } catch (ParseException e) { + e.printStackTrace(); + } + Iterator iter = mapTemp.keySet().iterator(); + } + public String getFrcst(){ + return realFrcst; + } + public HashMap getLandHashMap(){ + return mapLand; + } + public HashMap getTempHashMap(){ + return mapTemp; + } +} diff --git a/src/Util/ForecastParser.java b/src/Util/ForecastParser.java new file mode 100644 index 0000000..b9740de --- /dev/null +++ b/src/Util/ForecastParser.java @@ -0,0 +1,152 @@ +package Util; +import java.io.IOException; +import java.util.HashMap; +import java.util.Iterator; + +import org.json.simple.JSONArray; +import org.json.simple.JSONObject; +import org.json.simple.parser.JSONParser; +import org.json.simple.parser.ParseException; +/* + * Date : 2016.11.05 + * Author : Byungkyu Ji + * class: 기상정보 파싱 클래스 + */ +public class ForecastParser { + private ForecastExplorer FE = new ForecastExplorer(); + String str_Grib =getFE().getGrib(); + String str_Space=getFE().getSpace(); + JSONParser jsonParser=new JSONParser(); + int spaceTime=getFE().make_SpaceTime(); + private int noTime=get_NoTime(spaceTime); + int SIZE[] = { 11, 9, 12, 9, 11, 10, 11, 9 }; + private HashMap mapSpace[]; + HashMap mapGrib=new HashMap(); + + + public ForecastParser() throws IOException, ParseException { + setMapSpace(new HashMap[getNoTime()]); + for(int i=0;i(); + spaceParsing(); + gribParsing(); + } + /* + * 동네 예보 정보 파싱 + */ + + private void gribParsing() throws IOException { + JSONObject json; + try { + json = (JSONObject) jsonParser.parse(str_Grib); + + JSONObject resp = (JSONObject) json.get("response"); + JSONObject body = (JSONObject) resp.get("body"); + JSONObject items = (JSONObject) body.get("items"); + JSONArray item = (JSONArray) items.get("item"); + for (int i = 0; i < item.size(); i++) { + JSONObject weatherObject = (JSONObject) item.get(i); + mapGrib.put(weatherObject.get("category").toString(), weatherObject.get("obsrValue").toString()); + } + } catch (ParseException e) { + e.printStackTrace(); + } + } + + private void putData(HashMap innerMap, JSONArray item, int size,int item_Index) { // JSONObject를 + JSONObject weatherObject = (JSONObject) item.get(item_Index); + for(int i=0;i getGribHashMap(){ + return mapGrib; + } + public HashMap[] getSpaceHashMap(){ + return getMapSpace(); +} + + public int getNoTime() { + return noTime; + } + + public void setNoTime(int noTime) { + this.noTime = noTime; + } + + public HashMap[] getMapSpace() { + return mapSpace; + } + + public void setMapSpace(HashMap mapSpace[]) { + this.mapSpace = mapSpace; + } + + public ForecastExplorer getFE() { + return FE; + } + + public void setFE(ForecastExplorer fE) { + FE = fE; + } + +} \ No newline at end of file diff --git a/src/Util/LocMetrics.css b/src/Util/LocMetrics.css new file mode 100644 index 0000000..480dcc0 --- /dev/null +++ b/src/Util/LocMetrics.css @@ -0,0 +1 @@ +CAPTION.MYTABLE{background-color:#8080ff;color:white;border-style:solid;border-width:2px;border-color:black;}TABLE.MYTABLE{font-family:arial;font-size:10pt;background-color:#808080;width:800px;border-style:solid;border-color:black;border-width:2px;}TH.MYTABLE{font-size:10pt;color:white;}TR.MYTABLE{}TD.MYTABLE{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:right;}TD.MYTABLEL{font-size:10pt;background-color:#409040;color:white;border-style:solid;border-width:1px;text-align:left;} \ No newline at end of file diff --git a/src/Util/LocMetrics.html b/src/Util/LocMetrics.html new file mode 100644 index 0000000..5463b68 --- /dev/null +++ b/src/Util/LocMetrics.html @@ -0,0 +1 @@ +

Overall
SymbolCountDefinition
Source Files8Source Files
Directories1Directories
LOC709Lines of Code
BLOC58Blank Lines of Code
SLOC-P596Physical Executable Lines of Code
SLOC-L 479Logical Executable Lines of Code
MVG66McCabe VG Complexity
C&SLOC43Code and Comment Lines of Code
CLOC55Comment Only Lines of Code
CWORD261Commentary Words
HCLOC0Header Comment Lines of Code
HCWORD0Header Commentary Words

C:\Users\ByungKyu\Desktop\JDP\src\Util - FOLDERS
FolderFilesLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
Total87095964796658435526100
C:\Users\ByungKyu\Desktop\JDP\src\Util87095964796658435526100

C:\Users\ByungKyu\Desktop\JDP\src\Util - FILES
FileLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORDHCLOCHCWORD
C:\Users\ByungKyu\Desktop\JDP\src\Util\ApiExplorer.java64534655063200
C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustExplorer.java34282323331600
C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustParser.java56443746061300
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastExplorer.java1088668171013125500
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidExplorer.java847260841386700
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidParser.java106937867061500
C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastParser.java15213010016141083800
C:\Users\ByungKyu\Desktop\JDP\src\Util\NewsSAXParser.java105906789462500

\ No newline at end of file diff --git a/src/Util/LocMetricsCommentWords.csv b/src/Util/LocMetricsCommentWords.csv new file mode 100644 index 0000000..f0f446a --- /dev/null +++ b/src/Util/LocMetricsCommentWords.csv @@ -0,0 +1,125 @@ +Word,Count +,27 +*,19 +예보,8 +충무로,6 +페이지,6 +줄,6 +검색할,6 +나타낼,6 +데이터,6 +수,6 +class,5 +중기,4 +파싱,4 +위한,4 +구분없이,3 +:,3 +비교,3 +\URLEncoder.encode(serviceKey,"\UTF-8"\));\,3 +구역,3 +정보,3 +시간,3 +시간을,3 +코드,3 +대소문자,3 +경기도,2 +실황,2 +구현,2 +시작,2 +방식으로,2 +파싱을,2 +반환,2 +API,2 +정수형으로,2 +현재,2 +맞게,2 +동네,2 +\서울,\,2 +\인천,\,2 +기준,2 +데이터를,2 +날짜,2 +기상,2 +\요청,\,1 +Author,1 +계산한다,1 +응답받은,1 +육상,1 +http,1 +10,1 +ji,1 +12,1 +JSONObject를,1 +기온,1 +Ji,1 +수정,1 +Auto-generated,1 +신규,1 +2016.11.05,1 +수신,1 +받아오기,1 +경우,1 +예보의,1 +등등,1 +11,1 +서울,1 +catch,1 +먼지의,1 +양식에,1 +수신을,1 +Byungkyu,1 +저장,1 +정보를,1 +TODO,1 +제공하는,1 +author,1 +오는,1 +조회,1 +받아,1 +11/14,1 +기상정보,1 +class:,1 +별로,1 +SAXParser로,1 +url을,1 +9,1 +00시의,1 +날짜를,1 +수신할,1 +API에서,1 +문자열을,1 +기준으로,1 +미세,1 +\author=Ji,\,1 +형식에,1 +block,1 +Date,1 +json,1 +형식으로,1 +url,1 +엘리먼트,1 +순서대로,1 +텍스트,1 +클래스,1 +요청,1 +수신를,1 +2016.11.17,1 +문서의,1 +xml,1 +맞춰,1 +구한,1 +미세먼지의,1 +편의에,1 +기본적인,1 +관련,1 +받아온,1 +각종,1 +put,1 +\서비스키,\,1 +전망조회,1 +반환한다,1 +파싱하여,1 +매개변수로,1 +서비스의,1 +처음,1 diff --git a/src/Util/LocMetricsFiles.csv b/src/Util/LocMetricsFiles.csv new file mode 100644 index 0000000..bfdeb09 --- /dev/null +++ b/src/Util/LocMetricsFiles.csv @@ -0,0 +1,9 @@ +File,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +C:\Users\ByungKyu\Desktop\JDP\src\Util\ApiExplorer.java,64,53,46,5,5,0,6,32,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustExplorer.java,34,28,23,2,3,3,3,16,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\FineDustParser.java,56,44,37,4,6,0,6,13,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastExplorer.java,108,86,68,17,10,13,12,55,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidExplorer.java,84,72,60,8,4,13,8,67,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastMidParser.java,106,93,78,6,7,0,6,15,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\ForecastParser.java,152,130,100,16,14,10,8,38,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util\NewsSAXParser.java,105,90,67,8,9,4,6,25,0,0 diff --git a/src/Util/LocMetricsFolders.csv b/src/Util/LocMetricsFolders.csv new file mode 100644 index 0000000..3ba0a5f --- /dev/null +++ b/src/Util/LocMetricsFolders.csv @@ -0,0 +1,3 @@ +Folder,Files,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD,HCLOC,HCWORD +Total,8,709,596,479,66,58,43,55,261,0,0 +C:\Users\ByungKyu\Desktop\JDP\src\Util,8,709,596,479,66,58,43,55,261,0,0 diff --git a/src/Util/LocMetricsFunctions.csv b/src/Util/LocMetricsFunctions.csv new file mode 100644 index 0000000..b2cfeab --- /dev/null +++ b/src/Util/LocMetricsFunctions.csv @@ -0,0 +1 @@ +File,Function,LOC,SLOC-P,SLOC-L,MVG,BLOC,C&SLOC,CLOC,CWORD diff --git a/src/Util/LocMetricsFunctions.html b/src/Util/LocMetricsFunctions.html new file mode 100644 index 0000000..b1b190f --- /dev/null +++ b/src/Util/LocMetricsFunctions.html @@ -0,0 +1 @@ +
C:\Users\ByungKyu\Desktop\JDP\src\Util - FUNCTIONS
FileFunctionLOCSLOC PhysicalSLOC LogicalMVGBLOCC&SLOCCLOCCWORD

\ No newline at end of file diff --git a/src/Util/LocMetricsPie.jpg b/src/Util/LocMetricsPie.jpg new file mode 100644 index 0000000..01f80b1 Binary files /dev/null and b/src/Util/LocMetricsPie.jpg differ diff --git a/src/Util/LocMetricsPie.png b/src/Util/LocMetricsPie.png new file mode 100644 index 0000000..1705d1d Binary files /dev/null and b/src/Util/LocMetricsPie.png differ diff --git a/src/Util/NewsSAXParser.java b/src/Util/NewsSAXParser.java new file mode 100644 index 0000000..d18655b --- /dev/null +++ b/src/Util/NewsSAXParser.java @@ -0,0 +1,104 @@ +package Util; +import java.io.IOException; +import java.util.ArrayList; + +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.parsers.SAXParser; +import javax.xml.parsers.SAXParserFactory; + +import org.xml.sax.Attributes; +import org.xml.sax.SAXException; +/* + * author=Ji, 11/14 + */ +import org.xml.sax.helpers.DefaultHandler; + +public class NewsSAXParser extends DefaultHandler { + private ArrayList title = new ArrayList(); + private ArrayList link = new ArrayList(); + private ArrayList dscrpt = new ArrayList(); + private String pubDate; + String news = "http://fs.jtbc.joins.com//RSS/newsflash.xml"; + SAXParser parser; //xml 형식으로 오는 데이터를 SAXParser로 파싱 + boolean bPubDate=false; + boolean bTitle=false; + boolean bLink=false; + boolean bDscrpt=false; + boolean pubTime=true; + public NewsSAXParser() throws ParserConfigurationException, SAXException{ + parser= SAXParserFactory.newInstance().newSAXParser(); + + } + // 문서의 시작 + public void startDocument() throws SAXException { + super.startDocument(); + } + // 엘리먼트 시작 + + public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { + if(qName.equalsIgnoreCase("link")){//대소문자 구분없이 비교 + bLink=true; + } + else if(qName.equalsIgnoreCase("title")){//대소문자 구분없이 비교 + bTitle=true; + } + else if(qName.equalsIgnoreCase("description")){//대소문자 구분없이 비교 + bDscrpt=true; + } + else if(pubTime&&qName.equalsIgnoreCase("pubDate")){ + pubTime=false; + bPubDate=true; + } + for (int i = 0; i < attributes.getLength(); i++) { + + } + + } + // 텍스트 데이터 + public void characters(char ch[], int start, int length) throws SAXException { + if(bTitle){ + getTitle().add(new String(ch,start,length)); + bTitle=false; + } + else if(bLink){ + getLink().add(new String(ch,start,length)); + bLink=false; + } + + else if(bDscrpt){ + getDscrpt().add(new String(ch,start,length)); + bDscrpt=false; + } + if(bPubDate){ + setPubDate(new String(ch,start,length)); + bPubDate=false; + } + } + public void parse() throws SAXException, IOException{ + parser.parse(news,this); + } + public ArrayList getTitle() { + return title; + } + public void setTitle(ArrayList title) { + this.title = title; + } + public ArrayList getLink() { + return link; + } + public void setLink(ArrayList link) { + this.link = link; + } + public ArrayList getDscrpt() { + return dscrpt; + } + public void setDscrpt(ArrayList dscrpt) { + this.dscrpt = dscrpt; + } + public String getPubDate() { + return pubDate; + } + public void setPubDate(String pubDate) { + this.pubDate = pubDate; + } + } diff --git a/sunny.jpg b/sunny.jpg new file mode 100644 index 0000000..875226c Binary files /dev/null and b/sunny.jpg differ diff --git a/wisdom.txt b/wisdom.txt new file mode 100644 index 0000000..f1c610d --- /dev/null +++ b/wisdom.txt @@ -0,0 +1,105 @@ +Think like a man of action and act like man of thought. +Courage is very important. Like a muscle, it is strengthened by use. +Life is the art of drawing sufficient conclusions from insufficient premises. +By doubting we come at the truth. +A man that hath no virtue in himself, ever envieth virtue in others. +When money speaks, the truth keeps silent. +Better the last smile than the first laughter. +In the morning of life, work; in the midday, give counsel; in the evening, pray. +Painless poverty is better than embittered wealth. +A poet is the painter of the soul. +Error is the discipline through which we advance. +Faith without deeds is useless. +Weak things united become strong. +We give advice, but we cannot give conduct. +Nature never deceives us; it is always we who deceive ourselves. +Forgiveness is better than revenge. +We never know the worth of water till the well is dry. +Pain past is pleasure. +Books are ships which pass through the vast seas of time. +Who begins too much accomplishes little. +Better the last smile than the first laughter. +Faith is a higher faculty than reason. +Until the day of his death, no man can be sure of his courage. +Great art is an instant arrested in eternity. +Faith without deeds is useless. +The world is a beautiful book, but of little use to him who cannot read it. +Heaven gives its favourites-early death. +I never think of the future. It comes soon enough. +Suspicion follows close on mistrust. +He who spares the rod hates his son, but he who loves him is careful to discipline him. +All good things which exist are the fruits of originality. +The will of a man is his happiness. +He that has no shame has no conscience. +Weak things united become strong. +A minute’s success pays the failure of years. +United we stand, divided we fall. +To doubt is safer than to be secure. +Time is but the stream I go a-fishing in. +삶이 있는 한 희망은 있다 -키케로 +산다는것 그것은 치열한 전투이다. -로망로랑 +하루에 3시간을 걸으면 7년 후에 지구를 한바퀴 돌 수 있다. -사무엘존슨 +언제나 현재에 집중할수 있다면 행복할것이다. -파울로 코엘료 +진정으로 웃으려면 고통을 참아야하며 , 나아가 고통을 즐길 줄 알아야 해 -찰리 채플린 +직업에서 행복을 찾아라. 아니면 행복이 무엇인지 절대 모를 것이다 -엘버트 허버드 +신은 용기있는자를 결코 버리지 않는다 -켄러 +피할수 없으면 즐겨라 - 로버트 엘리엇 +먼저 자신을 비웃어라. 다른 사람이 당신을 비웃기 전에 - 엘사 맥스웰 +먼저핀꽃은 먼저진다 남보다 먼저 공을 세우려고 조급히 서둘것이 아니다.- 채근담 +행복한 삶을 살기위해 필요한 것은 거의 없다.-마르쿠스 아우렐리우스 안토니우스 +한번의 실패와 영원한 실패를 혼동하지 마라 -F.스콧 핏제랄드 +내일은 내일의 태양이 뜬다 +피할수 없으면 즐겨라 -로버트 엘리엇 +계단을 밟아야 계단 위에 올라설수 있다, -터키속담 +오랫동안 꿈을 그리는 사람은 마침내 그 꿈을 닮아 간다, -앙드레 말로 +좋은 성과를 얻으려면 한 걸음 한 걸음이 힘차고 충실하지 않으면 안 된다, -단테 +행복은 습관이다,그것을 몸에 지니라 -허버드 +성공의 비결은 단 한 가지, 잘할 수 있는 일에 광적으로 집중하는 것이다.- 톰 모나건 +자신감 있는 표정을 지으면 자신감이 생긴다 -찰스다윈 +평생 살 것처럼 꿈을 꾸어라.그리고 내일 죽을 것처럼 오늘을 살아라.- 제임스 딘 +1퍼센트의 가능성, 그것이 나의 길이다. -나폴레옹 +고통이 남기고 간 뒤를 보라! 고난이 지나면 반드시 기쁨이 스며든다. -괴테 +꿈을 계속 간직하고 있으면 반드시 실현할 때가 온다. -괴테 +마음만을 가지고 있어서는 안된다. 반드시 실천하여야 한다.-이소룡 +눈물과 더불어 빵을 먹어 보지 않은 자는 인생의 참다운 맛을 모른다. -괴테 +진짜 문제는 사람들의 마음이다. 그것은 절대로 물리학이나 윤리학의 문제가 아니다.-아인슈타인 +해야 할 것을 하라. 모든 것은 타인의 행복을 위해서,동시에 특히 나의 행복을 위해서이다.-톨스토이 +사람이 여행을 하는 것은 도착하기 위해서가 아니라 여행하기 위해서이다. -괴테 +화가 날 때는 100까지 세라. 최악일 때는 욕설을 퍼부어라. -마크 트웨인 +돈이란 바닷물과도 같다. 그것은 마시면 마실수록 목이 말라진다. -쇼펜하우어 +고개 숙이지 마십시오. 세상을 똑바로 정면으로 바라보십시오. -헬렌 켈러 +고난의 시기에 동요하지 않는 것, 이것은 진정 칭찬받을 만한 뛰어난 인물의 증거다. -베토벤 +사막이 아름다운 것은 어딘가에 샘이 숨겨져 있기 때문이다 - 생떽쥐베리 +만족할 줄 아는 사람은진정한 부자이고,탐욕스러운 사람은진실로 가난한 사람이다.-솔론 +성공해서 만족하는 것은 아니다.만족하고 있었기 때문에 성공한 것이다.-알랭 +곧 위에 비교하면 족하지 못하나,아래에 비교하면 남음이 있다.-명심보감 +그대의 하루 하루를 그대의 마지막 날이라고 생각하라 - 호라티우스 +자신을 내보여라. 그러면 재능이 드러날 것이다. - 발타사르 그라시안 +당신이 할수 있다고 믿든 할수 없다고 믿든 믿는 대로 될것이다.- 헨리 포드 +단순하게 살라. 쓸데없는 절차와 일 때문에 얼마나 복잡한 삶을 살아가는가? -이드리스 샤흐 +작은 기회로 부터 종종 위대한 업적이 시작된다.-데모스테네스 +인생이란 학교에는 불행 이란 훌륭한 스승이 있다. 그 스승 때문에 우리는 더욱 단련되는 것이다. -프리체 +세상은 고통으로 가득하지만 그것을 극복하는 사람들로도 가득하다 - 헨렌켈러 +최고에 도달하려면 최저에서 시작하라.-P.시루스 +내 비장의 무기는 아직 손안에 있다 .그것은 희망이다 - 나폴레옹 +문제는 목적지에 얼마나 빨리 가느내가 아니라 그 목적지가 어디냐는 것이다.-메이벨 뉴컴버 +한 번 실패와 영원한 실패를 혼동하지 마라.-F.스콧 핏제랄드 +인간의 삶 전체는 단지 한 순간에 불과하다 . 인생을 즐기자 - 플루타르코스 +겨울이 오면 봄이 멀지 않으리 -셸리 +일하여 얻으라 . 그러면 운명의 바퀴를 붙들어 잡은것이다 -랄프 왈도 에머슨 +당신의 행복은 무엇이 당신의 영혼을 노래하게 하는가에 따라 결정된다. - 낸시 설리번 +자신이 해야 할 일을 결정하는 사람은 세상에서 단 한 사람, 오직 나 자신뿐이다.-오손 웰스- +인생을 다시 산다면 다음번에는 더 많은 실수를 저지르리라 - 나딘 스테어 +절대 어제를 후회하지 마라 . 인생은 오늘의 나 안에 있고 내일은 스스로 만드는 것이다 -L.론허바드 +인생에서 원하는 것을 엇기 위한 첫번째 단계는 내가 무엇을 원하는지 결정하는 것이다 .-벤스타인 +가난은 가난하다고 느끼는 곳에 존재한다 .- 에머슨 +문제점을 찾지 말고 해결책을 찾으라 - 헨리포드 +우선 무엇이 되고자 하는가를 자신에게 말하라 그리고 해야 할일을 하라 -에픽토테스 +인생에 뜻을 세우는데 있어 늦은 때라곤 없다 - 볼드윈 +도중에 포기하지 말라. 망설이지 말라. 최후의 성공을 거둘 때까지 밀고 나가자.- 헨리포드 +네 자신의 불행을 생각하지 않게 되는 가장 좋은 방법은 일에 몰두하는 것이다. -베토벤 +우리는 두려움의 홍수에 버티기 위해서 끊임없이 용기의 둑을 쌓아야 한다. -마틴 루터 킹 +이미끝나버린 일을 후회하기 보다는 하고 싶었던 일들을 하지못한 것을 후회하라- 탈무드 +실패는 잊어라 그러나 그것이 준 교훈은 절대 잊으면 안된다.-하버트 개서 +성공으로 가는 엘리베이터는 고장입니다. 당신은 계단을 이용해야만 합니다.한계단 한계단씩 - 조 지라드 +길을 잃는 다는 것은 곧 길을 알게 된다는 것이다. - 동아프리카속담 \ No newline at end of file diff --git "a/\352\265\254\353\246\204\353\247\216\354\235\214.jpg" "b/\352\265\254\353\246\204\353\247\216\354\235\214.jpg" new file mode 100644 index 0000000..993b6b2 Binary files /dev/null and "b/\352\265\254\353\246\204\353\247\216\354\235\214.jpg" differ diff --git "a/\352\265\254\353\246\204\354\241\260\352\270\210.jpg" "b/\352\265\254\353\246\204\354\241\260\352\270\210.jpg" new file mode 100644 index 0000000..2c0c83f Binary files /dev/null and "b/\352\265\254\353\246\204\354\241\260\352\270\210.jpg" differ diff --git "a/\353\210\210.jpg" "b/\353\210\210.jpg" new file mode 100644 index 0000000..c75e67f Binary files /dev/null and "b/\353\210\210.jpg" differ diff --git "a/\353\247\221\354\235\214.jpg" "b/\353\247\221\354\235\214.jpg" new file mode 100644 index 0000000..5cc51a8 Binary files /dev/null and "b/\353\247\221\354\235\214.jpg" differ diff --git "a/\353\271\204.jpg" "b/\353\271\204.jpg" new file mode 100644 index 0000000..e0d29b6 Binary files /dev/null and "b/\353\271\204.jpg" differ diff --git "a/\355\235\220\353\246\274.jpg" "b/\355\235\220\353\246\274.jpg" new file mode 100644 index 0000000..2523502 Binary files /dev/null and "b/\355\235\220\353\246\274.jpg" differ