首先,格式化器必须能够对类型进行序列化。
First, the formatter must be able to serialize the type. This is verified by calling MediaTypeFormatter. CanWriteType.
使用一个媒体类型格式化器序列化此例子实例。
Use a media-type formatter to serialize the example instance.
在较为复杂的情况下,既有显示格式化器,也有输入格式化器。
In more complicated cases, there is both a display formatter and an input formatter.
编辑时,缺省日期格式化器允许根据光标的位置在可用的月或日之间滚动。
For example, the default date formatter permits scrolling through the available months or days based upon where the cursor is located while editing.
例如,如果请求含有JSON数据,内容协商器会找到JSON格式化器。
For example, if the request contains JSON data, the content negotiator looks for a JSON formatter.
在后一种情况下,组件用工厂(Factory)设计模式来查找指定值类的缺省格式化器。
In the latter case, the component USES the Factory design pattern to look up the default formatters for the class of the specified value.
如果仍无匹配,内容协商器便简单地捡取能够对类型进行序列化的第一个格式化器。
If there are still no matches, the content negotiator simply picks the first formatter that can serialize the type.
其次,内容协商器要考查每个格式化器,并评估此格式化器与HTTP请求的匹配好坏。
Next, the content negotiator looks at each formatter and evaluates how well it matches the HTTP request.
也可以明确指定所使用的媒体类型格式化器。如果你有一个自定义媒体类型格式化器,这是有用的。
You can also explicitly specify the media-types formatters to use. This is useful if you have a custom media-type formatter.
性能跟踪格式化器是一个解析选项,它将包含性能计数器数据的转储文件格式化为可读文本(请参见清单6)。
The performance trace formatter is a parsing option that formats a dump file containing performance counter data into readable text (see Listing 6).
IBMSDK在core . jar中提供了这个格式化器,它还需要一个称为TraceFormat . dat的文件,其中包含格式化模板。
The formatter, which is shipped with the IBM SDK in core.jar, also requires a file called TraceFormat.dat, which contains the formatting templates.
在这里,com . ibm . jvm . format . TraceFormat是跟踪格式化器类,input _file是要进行格式化的二进制跟踪文件的名称,output _ file是可选的输出文件名。
Here, com.ibm.jvm.format.TraceFormat is the trace formatter class, input_file is the name of the binary trace file to be formatted, and output_file is the optional output filename.
我可以将所有数据放进一个feed,然后在页面上对XML进行格式化,也可以用标准的聚合器跟踪它。
I could put all the data into one feed and then format the XML on the page, but also allow it to be tracked with a standard aggregator.
MXML文件是格式良好的XML文件,所以我将它们在Eclipse中关联到XML编辑器,以利用XML编辑器的功能,比如格式化和标记闭合。
The MXML files are well-formed XML files, so I associate them in Eclipse with the XML editor to take advantage of the XML editor's features, such as formatting and tag closing.
最基本的一种方式是覆盖此网格select编辑器的格式化程序来返回针对所选行的选项信息。
Minimally, you can override the formatter for the grid select editor to return option information for the selected row.
清单6.打开性能计数器和格式化捕捉到的数据。
Listing 6. Turning on the performance counter and formatting the captured data.
但是,很多时候数字可能不在服务器上,因此您需要一种方法在客户机上格式化数字,而不需要与服务器会话。
However, many times you might not be on the server, so you need a way to format Numbers on the client, without ever talking to the server.
字处理器提供了拼写检查、格式化和作为需求“容器”的文档模板。
A word processor provides spell checking, formatting, and document templates that function as "containers" for requirements.
主扩展在首次启动队列管理器时由队列管理器分配和格式化,而其他扩展是以后添加的。
Primary extents are allocated and formatted by the queue manager when it is first started or when extra extents are added.
服务器端可以执行数据库或文件访问,处理数据,然后格式化数据,并将其返回给浏览器。
The server side can perform database or file access, process the data, then format the data and return it back to the browser.
控制器从模型请求数据并发送给视图完成格式化。
The controller requests data from the model and sends it to the view for formatting.
管理控制台gui,支持过滤和格式化本地或远程日志和跟踪,甚至是在远程服务器停用时。
Administrative console GUI to filter and format local or remote logs and trace, even when the remote server is down.
到目前为止,我已经讨论了如何将XML 格式化,以便为使用模式验证器铺平道路。
Thus far, I have discussed how to structure your XML to pave the way for using a schema validator.
还可以针对具体的区域设置重新格式化日期,或更复杂些,基于浏览器所报告的来源地设置格式化日期。
You could also reformat the date for your locale, or get fancy and format it based on the locale the browser reports it's from.
无论你是升级或格式化驱动器以安装覆盖,你都一直备份你先前的安装。
Always backup your previous installation, whether you're upgrading or wiping your drive and starting over.
对于大多数HTML处理而言,这没问题,在浏览器的格式化过程中通常会丢弃额外的空格—但是对于xml而言却并非如此,XML中的空格可能是有意义的。
That's OK for most HTML processing, where extra whitespace is generally discarded during the browser's formatting process — but it isn't so good for XML, where whitespace may be meaningful.
服务器格式化HTML响应。
所有形式域可被扩展为一个完整的文本编辑器,它允许你格式化文本,处理表格包括图像,等等。
Every form field can be expanded into a full-sized rich text editor that allows you to format text, work with tables, include images, and so on.
格式化或重新格式化硬盘驱动器通常非常耗时。
Formatting or reformatting hard drives is often time-consuming.
然后,服务器格式化组成该响应的HTML块并将其返回到页面。
The server then formats a block of HTML that makes up the response and sends it back to the page.
应用推荐